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-extension

Usage

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

python -m plex_extension.main <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_extension.main 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"

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.0.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.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plex_assets_manager-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e25bc633c3cb0a6ad53fccb025e84bd168c17358574d195f0a619cb6a8ee2a37
MD5 f4cfb15c9998e7d46758c967d1e1a3df
BLAKE2b-256 877d0e54d428a22a3658a613c9f42f249887ea992c6757a5662fbae5f585d913

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plex_assets_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 318e34b7cb95b0476acde823a2af7933c3a125c457292055d1f1ca4bcc0677ca
MD5 73906ef511f13b7370e2376a4c0fc38b
BLAKE2b-256 0fe0338771fe4c2ac87f672850299a5d62a95057de04658b4d57251411a24241

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