Skip to main content

PlayOn facilities, primarily access to the download API. Includes a nice command line tool.

Latest release 20221228:

  • PlayOnAPI.suburl_data: progress reporting, raise on bad response, upgrade JSON error warning.
  • PlayOnAPI: use a common cookie jar across API calls.
  • PlayOnCommand: new "api" and "cds" API access subcommands.
  • PlayOnCommand._refresh_sqltags_data: bugfix "expired cache" logic.
  • PlayOnCommand: new "poll" subcommand reporting the API notifications response.

Function main(argv=None)

Playon command line mode; see the PlayOnCommand class below.

Class PlayOnAPI(cs.resources.MultiOpenMixin, cs.context.ContextManagerMixin)

Access to the PlayOn API.

Class PlayOnCommand(cs.cmdutils.BaseCommand)

Playon command line implementation.

Command line usage:

Usage: playon subcommand [args...]

    Environment:
      PLAYON_USER               PlayOn login name, default from $EMAIL.
      PLAYON_PASSWORD           PlayOn password.
                                This is obtained from .netrc if omitted.
      PLAYON_FILENAME_FORMAT  Format string for downloaded filenames.
                                Default: {playon.Series}--{playon.Name}--{resolution}--{playon.ProviderID}--playon--{playon.ID}
      PLAYON_TAGS_DBURL         Location of state tags database.
                                Default: ~/var/playon.sqlite

    Recording specification:
      an int        The specific recording id.
      all           All known recordings.
      downloaded    Recordings already downloaded.
      expired       Recording which are no longer available.
      pending       Recordings not already downloaded.
      /regexp       Recordings whose Series or Name match the regexp,
                    case insensitive.

  Subcommands:
    account
      Report account state.
    api suburl
      GET suburl via the API, print result.
    cds suburl
      GET suburl via the content delivery API, print result.
      Example subpaths:
        content
        content/provider-name
    dl [-j jobs] [-n] [recordings...]
      Download the specified recordings, default "pending".
      -j jobs   Run this many downloads in parallel.
                The default is 2.
      -n        No download. List the specified recordings.
    help [-l] [subcommand-names...]
      Print the full help for the named subcommands,
      or for all subcommands if no names are specified.
      -l  Long help even if no subcommand-names provided.
    ls [-l] [recordings...]
      List available downloads.
      -l        Long listing: list tags below each entry.
      -o format Format string for each entry.
      Default format: {playon.ID} {playon.HumanSize} {resolution} {playon.Series} {playon.Name} {playon.ProviderID} {status:upper}
    poll ...
    q [-l] [recordings...]
      List queued recordings.
      -l        Long listing: list tags below each entry.
      -o format Format string for each entry.
      Default format: {playon.ID} {playon.Series} {playon.Name} {playon.ProviderID}
    queue [-l] [recordings...]
      List queued recordings.
      -l        Long listing: list tags below each entry.
      -o format Format string for each entry.
      Default format: {playon.ID} {playon.Series} {playon.Name} {playon.ProviderID}
    refresh [queue] [recordings]
      Update the db state from the PlayOn service.
    service [service_id]
      List services.

Class PlayOnSQLTags(cs.sqltags.SQLTags, cs.tagset.BaseTagSets, cs.resources.MultiOpenMixin, cs.context.ContextManagerMixin, collections.abc.MutableMapping, collections.abc.Mapping, collections.abc.Collection, collections.abc.Sized, collections.abc.Iterable, collections.abc.Container)

SQLTags subclass with PlayOn related methods.

Class Recording(cs.sqltags.SQLTagSet, cs.obj.SingletonMixin, cs.tagset.TagSet, builtins.dict, cs.dateutils.UNIXTimeMixin, cs.lex.FormatableMixin, cs.lex.FormatableFormatter, string.Formatter, cs.mappings.AttrableMappingMixin)

An SQLTagSet with knowledge about PlayOn recordings.

Release Log

Release 20221228:

  • PlayOnAPI.suburl_data: progress reporting, raise on bad response, upgrade JSON error warning.
  • PlayOnAPI: use a common cookie jar across API calls.
  • PlayOnCommand: new "api" and "cds" API access subcommands.
  • PlayOnCommand._refresh_sqltags_data: bugfix "expired cache" logic.
  • PlayOnCommand: new "poll" subcommand reporting the API notifications response.

Release 20220311: Bugfix criteria for refreshing the PlayOn state.

Release 20211212: Initial release.

Release files for cs-app-playon 20221228

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs-app-playon 20221228
File Size Uploaded
cs.app.playon-20221228.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cs-app-playon 20221228
File Interpreter ABI Platform
cs.app.playon-20221228-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / cs.app.playon-20221228.tar.gz

Download URL cs.app.playon-20221228.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef3c1791dd322f7a291aa03b37066faf32089465a4ad6e05f2952dab92fda14a
BLAKE2b-256 checksum
How to use checksums
f3775255e336a0b3246a08b86e9abe03daec3d3cd8f868c5221d34193d01b3b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / cs.app.playon-20221228-py3-none-any.whl

Download URL cs.app.playon-20221228-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fce18e2ef7f5a1710204e96d0a81c49d515f6ab7477b87c79d967821b48a211
BLAKE2b-256 checksum
How to use checksums
d6f2cbd3a59c9c3a586e6d210176e415d15fc3a941cfc309c886057e3b3dc2f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page