Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
Setup Project
install with poetry
- Poetry installation documentation
- open the terminal in the project directory
- execute
poetry installto install the dependencies - execute
poetry run compile-messagesto install other languages - execute
poetry run generate-test-datato generate the test data for the unittests - execute
poetry run plexutilsto run the script
config.yaml
To create a config.yaml file you can simply copy or rename the example-config.yaml file
to config.yaml and adjust the settings to your needs.
Language
Example
language: de_DE
Supported languages
de_DEgerman (germany)de_ATgerman (tyrol)en_USenglish
Plex Libraries
Example
libraries:
- name: Movies
type: movie
lang:
dub: de_DE
sub: de_DE
path: /.../movies
- name: TV Shows
type: tvshow
lang:
dub: de_DE
sub: de_DE
path: /.../tvshows
Description
Under the libraries key you can define your plex libraries. Each library has the following keys:
name(required): The name of the librarytype(required): The type of the library. Possible values aremovieandtvshowpath(required): The path to the librarylang(optional): The language settings for the library. Each library has the following keys:dub(optional): The default isen_US. The language of the dubbingsub(optional): The language of the subtitles
TVDB Credentials
To get the TVDB credentials you need to create an account on thetvdb.com and create a new API key and pin.
Example
tvdb:
api_key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
api_pin: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Description
Under the tvdb key you can define your TVDB credentials:
api_key(required): The API keyapi_pin(required): The API pin
Documentation
Update the documentation
- open the terminal in the project directory
- execute
poetry run generate-docsto generate the documentation with sphinx
Features
MovieFileUtils
- validate movie filename syntax
TVShowFileUtils
- validate tvshow directory syntax
- validate season directory syntax
- validate episode filename syntax
TVDBUtils
- search in tvdb for new seasons of existing tvshows
- search in tvdb for missing episodes of existing seasons of existing tvshows
Contribute
Add new language
Unix
- install
xgettext - create the
messages.potfile- (unix)
find . -iname "*.py" | xargs xgettext -o messages.pot
- (unix)
- rename the
messages.potfile toplexutils.po - move
plexutils.potolocale/xx_XX/LC_MESSAGES/ - execute
msgfmt locale/xx_XX/LC_MESSAGES/plexutils.po -o locale/xx_XX/LC_MESSAGES/plexutils.mo - change the language in the config.yaml
- DONE!
Windows
- install babel if not installed (
pip install Babel) - create
babel.cfgwith[python: **.py]as its content - open Command Prompt (cmd) and navigate to your project directory. Run:
pybabel extract -F babel.cfg -o messages.pot . - run the following command, replacing
xx_XXwith your language code (e.g.,de_DEfor German):pybabel init -i messages.pot -d locale -l xx_XX - open the generated .po file in
locale/xx_XX/LC_MESSAGES/directory with a text editor and translate the messages into your desired language - rename the
messages.potfile toplexutils.po - compile the .po file to a .mo file:
Execute:
pybabel compile -d locale - Open
config.yamlin a text editor and update the language setting (e.g.,language: de_DE) - DONE!
Metadata
Release files for plexutils 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| plexutils-1.1.0.tar.gz | 29.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| plexutils-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.6 kB
Release files / plexutils-1.1.0.tar.gz
| Download URL | plexutils-1.1.0.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caf96a110f161ac607f08375910f343afae8f547739e9383c627dbca9d0c75db
|
|
BLAKE2b-256 checksum How to use checksums |
e5e2c75dba93e54944167afedf3ee13dbe977f2c317305b0524dd88f6e802126
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
|
Release files / plexutils-1.1.0-py3-none-any.whl
| Download URL | plexutils-1.1.0-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eea44fa12be40cb728e1dc2142651f92d18989e9bfe2821a04bc74490295fe5b
|
|
BLAKE2b-256 checksum How to use checksums |
818734cceca754665f9091c0264f257c7698a316ba3ba161415d78966ba7e027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
|