Skip to main content

A Python project for managing and organizing Plex media library

Project description

Plex Assets Manager

A Python project for managing and organizing Plex media library.

Features

  • Reorganize movie folders
  • Rename movie files
  • Download trailers
  • Download subtitles

Installation

To install the package, you can use pip:

pip install plex-assets-manager

Usage

You can use the package by running the main script with the desired function:

python -m plex_assets_manager <function_id> [options]

Functions

  1. Reorganize folders: Reorganize movie folders.
  2. Rename movie files: Rename movie files to a standard format.
  3. Download trailers: Download trailers for movies.
  4. Download subtitles: Download subtitles for movies.

Example

To reorganize folders, you would run:

python -m plex_assets_manager 1

Command Line Options

  • -q, --quiet: Quiet Mode: no logging of intermediate steps.
  • -l, --log: Writes logs to a log file. Default is to show on console.
  • -t, --token: Plex API token. If not specified, the value is taken from the conf file.
  • -u, --url: Plex URL. If not specified, the value is taken from the conf file.
  • -m, --movielib: Name of the Films library in Plex. If not specified, the value is taken from the conf file.

Configuration

Configuration settings are managed in the conf.py file. Ensure you update this file with your specific settings.

# conf.py
PLEX_API_TOKEN = 'your_plex_api_token_here'
OPENSUBTITLES_API_KEY = 'your_opensubtitles_api_key_here'
PLEX_URL = "http://127.0.0.1:32400"
MOVIES_LIBRARY = 'Movies'
LOG = True
QUIET = False
MIN_VIEWS = 10000
MAX_FILESIZE_MB = 100
MIN_FILESIZE_MB = 1
MAX_SLEEP_DURATION = 15
MAX_DAILY_SUB_DOWNLOADS = 20
SUB_DOWNLOAD_TRACK_FILE = "sub_download_tracker.txt"

Running the Package

To run the package, use the following command format:

python -m plex_assets_manager <function_id> [options]

Example Command

To download all trailers:

python -m plex_assets_manager 3

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

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_assets_manager-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

plex_assets_manager-0.1.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file plex_assets_manager-0.1.1.tar.gz.

File metadata

  • Download URL: plex_assets_manager-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for plex_assets_manager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c4ea3c456ca276cefb5b925a7f463f33f9b6562117fab6bdaf738ad27015c62e
MD5 73d88bf74642b256b601b156c30791cc
BLAKE2b-256 6cc541391f9fea28ea205b01995bc0b71926a5c8d8fba6188be631db0a806d6b

See more details on using hashes here.

File details

Details for the file plex_assets_manager-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for plex_assets_manager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9ae20b3dedd54eefe2ee527b4cba0dcae636f17c7f27d7277707314f3a08825
MD5 16a0904559da7d505c93ae4a3166dae5
BLAKE2b-256 2c75e5c8201becbfddac575c9aecdd23d418015914e872ddadf21f4bcaf6a745

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