Skip to main content

Plex-Meta-Manager-Config-Generator

PyPI version

A python application to automatically generate Plex Meta Manager configuration files based on your plex libraries.

Library types supported:

  • Movie
  • TV
  • Music (json format only)

Install

pip install pmm-cfg-gen

Running from command line

Usage:

usage: pmm-cfg-gen [-h] [--plex.serverUrl PLEX.SERVERURL] [--plex.token PLEX.TOKEN] [--plex.lbraries [PLEX.LBRARIES ...]] [--output.path OUTPUT.PATH] [--output.overwrite OUTPUT.OVERWRITE]
                   [--theMovieDatabase.apiKey THEMOVIEDATABASE.APIKEY] [--thePosterDatabase.enablePro] [--pmm.deltaOnly] [--logLevel {INFO,WARN,DEBUG,CRITICAL}]

options:
  -h, --help            show this help message and exit
  --plex.serverUrl PLEX.SERVERURL
                        Plex Server fully qualifed URL
  --plex.token PLEX.TOKEN
                        Authentication Token (not claim token) for the plex server
  --plex.lbraries [PLEX.LBRARIES ...]
                        Comma delimited list of libraries to process
  --output.path OUTPUT.PATH
                        Root path to store generated files (default: ./data)
  --output.overwrite OUTPUT.OVERWRITE
                        Overwrite existing files (default: False)
  --theMovieDatabase.apiKey THEMOVIEDATABASE.APIKEY
                        The Movie Database API Key
  --thePosterDatabase.enablePro
                        Enable Pro features for The Poster Database (requires you to be able to login to the site)
  --pmm.deltaOnly       Only generate files for items that do not already exist in current PMM configs
  --logLevel {INFO,WARN,DEBUG,CRITICAL}
                        Logging Level (default: INFO)

Configuration File

All of the configuration can be stored in a config.yaml file that uses the following format (with the exception of logLevel).

config.yaml:

plex:
  serverUrl: <plex server url>
  token: <plex token>
  libraries:
    - { name: "TV Shows", path: "tv", pmm_path: "/pmm_config/tv" }
    - { name: "Movies", path: "movies" }

plexMetaManager:
  cacheExistingFiles: true

theMovieDatabase:
  apiKey: <tmdb api key>

output:
    path: <path to store generated output>

Notes:

  • It is possible to use ENV variables (standard bash syntax supported).
  • If The Movia Database API Key is set, collection details are looked up realtime

Example:

plex:
    serverUrl: ${PLEX_SERVER:-https://plex:32400}
    token: ${PLEX_TOKEN}

Metadata

Release files for pmm-cfg-gen 0.2.7

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

Source distribution (sdist)

Source distribution for pmm-cfg-gen 0.2.7
File Size Uploaded Provenance Actions
pmm_cfg_gen-0.2.7.tar.gz 50.8 kB Without provenance Details for pmm_cfg_gen-0.2.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pmm-cfg-gen 0.2.7
File Interpreter ABI Platform Actions
pmm_cfg_gen-0.2.7-py3-none-any.whl Python 3 none any Details for pmm_cfg_gen-0.2.7-py3-none-any.whl

Total release size: 117.9 kB

Release files / pmm_cfg_gen-0.2.7.tar.gz

Download URL pmm_cfg_gen-0.2.7.tar.gz
Size 50.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c920ca19e011eef06945e291af78de97ddbed38ae222593b3a3c697680f8ea89
BLAKE2b-256 checksum
How to use checksums
75664991c1a28c3887ddcac2c19be65841225b20c40102ca81590b1498777dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-79-generic

Release files / pmm_cfg_gen-0.2.7-py3-none-any.whl

Download URL pmm_cfg_gen-0.2.7-py3-none-any.whl
Size 67.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08d095a0cd154ebe8cb7016abf23a7cf8e1cc858dd0bf7e34e98d5415ac6f876
BLAKE2b-256 checksum
How to use checksums
bc20e4302ee5f518bc1f9e3f69f5b27bc4fe8fd883803cc79fdb634a6836adca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-79-generic

Security for pmm-cfg-gen 0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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