A python script that:
- Removes completed torrents from Transmission.
- Scans a download folder for archives and video files.
- Extracts archives
- Moves archive files to Trash
- Moves video files to a TV or Movies folder depending on filename.
- Moves folders to Trash if a video file was moved.
- clone the repo
- create a virtual environment
virtualenv --no-site-packages env
source env/bin/activate
pip install -r requirements.pip
- copy local_settings.template.py to local_settings.py
- provide values for all properties in local_settings.py
- execute
./runner.py
- add
runner.py
to a cron job to run periodically.
- clone the repo
- copy local_settings.template.py to local_settings.py
- provide values for all properties in local_settings.py from the context of
/media
within the docker container - switch to the repo directory from terminal
- Build the docker image
docker build -t media-organizer .
- Run the command
docker run --rm -v /volume1/media/:/media media-organizer
- correctly specify a path to a media folder where all directories referenced in local_settings.py can be found