This project has been converted to a Flask Application https://github.com/smccaffrey/plex-etl
This tool was originally designed for personal use, but after some refactoring efforts it will hopefully make your media loading process into PLEX a lot easier.
Change current directory to where you want to process media files.
$ cd /path/to/plex/libraries
Install plex_etl_cli
~/path/to/plex/libraries$ git clone https://github.com/smccaffrey/plex_etl_cli.git
Intitialize the pipeline. You will be prompted to specify where your plex library lives.
$ python plex_etl.py --pipe movies --initialize
A directory called movies will be created in the cwd, with sub directories 1_dump
, 2_extracted
, 3_transformed
, 4_error
, 5_encoding_queue
. Place all raw movie rips/torrents in 1_dump
.
Extract all movie files.
$ python plex_etl.py --pipe movies --extract
Test if movies can be processed by the pipeline.
$ python plex_etl.py --pipe movies --test_parse
Transform all movie files
$ python plex_etl.py --pipe movies --transform
Load all transformed movies in PLEX_MEDIA_LIBRARY
$ python plex_etl.py --pipe movies --load
Cleanup all ETL directories in the movies pipeline
$ python plex_etl.py --pipe movies --cleanup
- added
cleanup()
function remove old directories and file from1_dump
and2_extracted
from themovies
pipe
- Created initial functionality
- Fully supports processing movie files