Skip to main content

A utility that applies alternate TVDB orders to Plex.

Project description

plex-tvdb-alt-orderer

A utility that applies alternate TVDB orders to Plex.
It was specifically created to apply the Money Heist Netflix order but can be used for any show/order combination.

NOTE: A TVDB API subscription is required.

Usage

Interactive

By default, this application runs in interactive mode and will prompt the user for all necessary information. However, all of this information can also be supplied via the CLI or environment variables.

Example (User/Password)

B:\> plex-tvdb-alt-orderer
[?] Enter your Plex server name (user/password authentication) or URL (token authentication): CoolGuyServer
[?] Enter your Plex username: coolguy
[?] Enter your Plex password: ********************
[?] Enter the name of the show: Money Heist
[?] Enter your TVDB subscriber PIN: ABC1234
[?] Select the order to apply: Alternate Order
   Aired Order
   DVD Order
   Absolute Order
 > Alternate Order
   Regional Order
   Alternate DVD Order

[?] Select the season to update: Entire Series
 > Entire Series
   Season 1
   Season 2
   Season 3
   Season 4
   Season 5

Updating Plex |################################| 48/48

Example (Token)

B:\> plex-tvdb-alt-orderer
[?] Enter your Plex server name (user/password authentication) or URL (token authentication): http://127.0.0.1:32400/
[?] Enter your Plex token: a9vuu9aklnKisJy4kmsT
[?] Enter the name of the show: Money Heist
[?] Enter your TVDB subscriber PIN: ABC1234
[?] Select the order to apply: Alternate Order
   Aired Order
   DVD Order
   Absolute Order
 > Alternate Order
   Regional Order
   Alternate DVD Order

[?] Select the season to update: Entire Series
 > Entire Series
   Season 1
   Season 2
   Season 3
   Season 4
   Season 5

Updating Plex |################################| 48/48

CLI

Usage: plex-tvdb-alt-orderer [OPTIONS]

Options:
  --plex-library TEXT   Your Plex TV show library name. Omit to use the
                        ALT_ORDERER_PLEX_LIBRARY environment variable, choose
                        from a list interactively or if your Plex server has a
                        sole TV show library.
  --plex-password TEXT  Your Plex password. Omit to use the
                        ALT_ORDERER_PLEX_PASSWORD environment variable or
                        enter interactively.
  --plex-server TEXT    Your Plex server name (user/password authentication)
                        or URL (token authentication). Omit to use the
                        ALT_ORDERER_PLEX_SERVER environment variable or enter
                        interactively.
  --plex-show TEXT      The name of the show in Plex. Omit to use the
                        ALT_ORDERER_PLEX_SHOW environment variable or enter
                        interactively.
  --plex-token TEXT     Your Plex token. Omit to use the
                        ALT_ORDERER_PLEX_TOKEN environment variable or enter
                        interactively.
  --plex-user TEXT      Your Plex username. Omit to use the
                        ALT_ORDERER_PLEX_USER environment variable or enter
                        interactively.
  --season INTEGER      The season to update (-1 to update the entire series).
                        Omit to use the ALT_ORDERER_SEASON environment
                        variable or enter interactively.
  --tvdb-order TEXT     The TVDB order name (as specified for API-connected
                        systems). Omit to use the ALT_ORDERER_TVDB_ORDER
                        environment variable or choose from a list
                        interactively.
  --tvdb-pin TEXT       Your TVDB subscriber PIN. Omit to use the
                        ALT_ORDERER_TVDB_PIN environment variable or enter
                        interactively.
  --help                Show this message and exit.

Example

plex-tvdb-alt-orderer --plex-server "CoolGuyServer" --plex-user coolguy --plex-password P@$$W0RD --plex-show "Money Heist" --season -1 --tvdb-pin ABC1234 --tvdb-order "Alternate Order"

Environment Variables

Name Description
ALT_ORDERER_PLEX_LIBRARY Your Plex TV show library name.
ALT_ORDERER_PLEX_PASSWORD Your Plex password.
ALT_ORDERER_PLEX_SERVER Your Plex server name (user/password authentication) or URL (token authentication).
ALT_ORDERER_PLEX_SHOW The name of the show in Plex.
ALT_ORDERER_PLEX_TOKEN Your Plex token.
ALT_ORDERER_PLEX_USER Your Plex username.
ALT_ORDERER_SEASON The season to update (-1 to update the entire series).
ALT_ORDERER_TVDB_ORDER The TVDB order name (as specified for API-connected systems).
ALT_ORDERER_TVDB_PIN Your TVDB subscriber PIN.

NOTE: CLI parameters take precedence over environment variables.

Additional Information

If the show name (entered interactively or via the CLI or environment variable) matches multiple Plex shows, the user will be prompted to select one:

[?] Select the show to update: The 10th Kingdom
 > The 10th Kingdom
   Animal Kingdom (2016)
   Kingdom
   Kingdom (2014)
   The Last Kingdom

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plex-tvdb-alt-orderer-0.3.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plex_tvdb_alt_orderer-0.3.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file plex-tvdb-alt-orderer-0.3.1.tar.gz.

File metadata

  • Download URL: plex-tvdb-alt-orderer-0.3.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for plex-tvdb-alt-orderer-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a701c9b753d58c36978c3f44ef52f580ab66399e48ebfb3d2af24d0341e32b05
MD5 99c1cd4b6753734f434928b440b39e78
BLAKE2b-256 a3b7ad18d51f0ef5fb097682da7034413393260d6ec5c4e806af691a57f6c535

See more details on using hashes here.

File details

Details for the file plex_tvdb_alt_orderer-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for plex_tvdb_alt_orderer-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4407a06d956aa369d93cef5351f16fa95e339fa387e6cc3616afe5641216a1b0
MD5 62a04d6dc3a16cc9e82b33c4df400389
BLAKE2b-256 41e6e10075e7170a13d284e0730c1c1ba3052701315147b9798398b549bd202e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page