Normalize media files for use with Plex Media Server
Project description
Plexer
Summary
A CLI tool made to make organizing your media for Plex Media Server easy. Normalize names of media files and directories to match the hierarchial requirements that Plex requires.
Features
Support
Currently, Plexer only supports organizing movies and other individual video files.
Roadmap
- Support for TV Shows (#28)
- Docker implementations (#29)
- MacOS support (#30)
- Windows support (#31)
- Metadata inference using file/directory info (i.e. analyze the video files to "guess" what the name, year, etc is) (#32)
Install
To install Plexer, there are a few options available.
Docker
The most portable way to install and run Plexer is by using Docker.
Via Container Registry
The easiest way to run Plexer in Docker is by using the public containers hosted on container registries. Plexer images are available on both Docker Hub and GitHub Container Registry. See the commands below for how to run Plexer using each registry.
Docker Hub
docker run --rm -it magneticstain/plexer-cli
Github Container Registry
docker run --rm -it ghcr.io/magneticstain/plexer-cli
Via Local Build
In the case that container registries are unavailable, there's also the option to build the image locally. To do that, check out the main branch of this repo, build the Plexer image, and run it.
git clone https://github.com/magneticstain/plexer-cli.git
docker build -t plexer_cli .
docker run --rm -it plexer_cli
Requirements
Media Metadata
The most important requirement before running plexer is to ensure that you've created a .plexer file in each of your target directories.
This is a JSON-formatted file that includes the movie metadata required by Plexer to perform its jobs.
Plexer File Generator
To easily create the .plexer file, you can use the one-liner below while in the movie's directory:
echo -n "Media Name: ";read MEDIA_NAME;echo -n "Release Year (YYYY): ";read RELEASE_YEAR;echo "{\"name\": \"${MEDIA_NAME}\", \"release_year\": \"${RELEASE_YEAR}\"}" > .plexer
It can be modified to support different types of media as well.
Usage
The source directory is the directory containing the raw media. The destination is where you'd like to save the processed media to.
usage: plexer.py [-h] [-v] [--version] -s SOURCE_DIR -d DESTINATION_DIR
options:
-h, --help show this help message and exit
-v, --verbose Verbosity (-v, -vv, etc)
--version show program's version number and exit
-s SOURCE_DIR, --source-dir SOURCE_DIR
-d DESTINATION_DIR, --destination-dir DESTINATION_DIR
Support & Feedback
If you run into issues while using Plexer, think you know a way to make it better, or just need help using it, create a new issue within this project and they will triaged when possible.
Development
Software Stack
For developing with Plexer, there are several tools that are in use:
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 plexer_cli-0.0.3.post5.tar.gz.
File metadata
- Download URL: plexer_cli-0.0.3.post5.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a121e64bf355abc32d50415fc8b52d9613c3044313daf47573f20c6b709f7521
|
|
| MD5 |
4d058122c23d5ed5bd6c8f8a327282e9
|
|
| BLAKE2b-256 |
ea80a3f4c6666a648e500dbabb5d11d4d7a179f4d829bafb8b2f1728b549912a
|
Provenance
The following attestation bundles were made for plexer_cli-0.0.3.post5.tar.gz:
Publisher:
release.yml on magneticstain/plexer-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plexer_cli-0.0.3.post5.tar.gz -
Subject digest:
a121e64bf355abc32d50415fc8b52d9613c3044313daf47573f20c6b709f7521 - Sigstore transparency entry: 141767272
- Sigstore integration time:
-
Permalink:
magneticstain/plexer-cli@ee2fcbe66e53a740ae009b204d117b5f853a6fc9 -
Branch / Tag:
refs/tags/v0.0.3-5 - Owner: https://github.com/magneticstain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee2fcbe66e53a740ae009b204d117b5f853a6fc9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file plexer_cli-0.0.3.post5-py3-none-any.whl.
File metadata
- Download URL: plexer_cli-0.0.3.post5-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b79f82c1ea63924c6ae22b577da3c7f80d918ce9ef410d62d225e759018fbac
|
|
| MD5 |
1cf89bee92fda9a55cad3161ad514836
|
|
| BLAKE2b-256 |
83f0c9075ecde09551e62e8c96a376faf2402f98afe59f48149215c343cfee37
|
Provenance
The following attestation bundles were made for plexer_cli-0.0.3.post5-py3-none-any.whl:
Publisher:
release.yml on magneticstain/plexer-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plexer_cli-0.0.3.post5-py3-none-any.whl -
Subject digest:
3b79f82c1ea63924c6ae22b577da3c7f80d918ce9ef410d62d225e759018fbac - Sigstore transparency entry: 141767274
- Sigstore integration time:
-
Permalink:
magneticstain/plexer-cli@ee2fcbe66e53a740ae009b204d117b5f853a6fc9 -
Branch / Tag:
refs/tags/v0.0.3-5 - Owner: https://github.com/magneticstain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee2fcbe66e53a740ae009b204d117b5f853a6fc9 -
Trigger Event:
push
-
Statement type: