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.
Metadata
Release files for plex-assets-manager 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plex_assets_manager-0.1.1.tar.gz | 8.4 kB | Without provenance | Details for plex_assets_manager-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plex_assets_manager-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for plex_assets_manager-0.1.1-py3-none-any.whl |
Total release size: 19.0 kB
Release files / plex_assets_manager-0.1.1.tar.gz
| Download URL | plex_assets_manager-0.1.1.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4ea3c456ca276cefb5b925a7f463f33f9b6562117fab6bdaf738ad27015c62e
|
|
BLAKE2b-256 checksum How to use checksums |
6cc541391f9fea28ea205b01995bc0b71926a5c8d8fba6188be631db0a806d6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.3
|
Release files / plex_assets_manager-0.1.1-py3-none-any.whl
| Download URL | plex_assets_manager-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9ae20b3dedd54eefe2ee527b4cba0dcae636f17c7f27d7277707314f3a08825
|
|
BLAKE2b-256 checksum How to use checksums |
2c75e5c8201becbfddac575c9aecdd23d418015914e872ddadf21f4bcaf6a745
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.3
|
Security for plex-assets-manager 0.1.1
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.