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
- Reorganize folders: Reorganize movie folders.
- Rename movie files: Rename movie files to a standard format.
- Download trailers: Download trailers for movies.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4ea3c456ca276cefb5b925a7f463f33f9b6562117fab6bdaf738ad27015c62e
|
|
| MD5 |
73d88bf74642b256b601b156c30791cc
|
|
| BLAKE2b-256 |
6cc541391f9fea28ea205b01995bc0b71926a5c8d8fba6188be631db0a806d6b
|
File details
Details for the file plex_assets_manager-0.1.1-py3-none-any.whl.
File metadata
- Download URL: plex_assets_manager-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ae20b3dedd54eefe2ee527b4cba0dcae636f17c7f27d7277707314f3a08825
|
|
| MD5 |
16a0904559da7d505c93ae4a3166dae5
|
|
| BLAKE2b-256 |
2c75e5c8201becbfddac575c9aecdd23d418015914e872ddadf21f4bcaf6a745
|