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.
Currently, Plexer only supports organizing movies and other individual video files.
- 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)
To install Plexer, there are a few options available.
The most portable way to install and run Plexer is by using Docker.
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 run --rm -it magneticstain/plexer-cli
docker run --rm -it ghcr.io/magneticstain/plexer-cli
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
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.
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.
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
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.
For developing with Plexer, there are several tools that are in use: