let's you build a queue of tasks to perform various operations
- You will build your work queue as a series of commands in
media_work_queue.py
. - There are various helper methods defined in the
Helpers
section for common scenarios. - Script out your work queue in the
Start Here
section. There is already an example queue scripted there which you can use as a guide but should delete when you make your own queue. - By default (if enabled) the script will send a Pushbullet notification upon queue completion however you can add or remove as many Pushbullet notifications as you like by simply using the
push_bullet
helper method wherever you would like a notification sent. - Save the file and exit.
- From the command line
python media_work_queue.py
- Your queue should now run to completetion. INFO level messages will appear in the command prompt and DEBUG level info is available in the log file. At the end of a run the script will log out any jobs that failed.
- Python 2.7
- Pip https://pip.pypa.io/en/latest/installing/
- Open a command prompt in the project directory
virtualenv venv
venv\Scripts\activate
(run deactivate to end)- pip install -r requirements.txt
TV Shows should be organized as follows:
Some Show 1
|- Season 01
|- Episode 01.mkv
|- Season 02
|- Episode 01.mkv
Some Show 2
|- Season 01
|- Episode 01.mkv
|- Season 02
|- Episode 01.mkv
Movies should be organized as follows:
Movie 1
|- Featurette
|- Trailer 01.mkv
|- Movie 1.mkv
Movie 2
|- Movie 2.mkv
- LogFile - Customize the name of the log file
- Handbrake ExePath - Set the path to your Handbrake.exe
- Handbrake Preset - Change the Handbrake Preset Profile used
- 7zip ExePath - Set the path to your 7zip.exe
- 7zip ArchivePassword - Set password to encrypt/decrypt 7zip files
- Media Output Paths - Set the output paths to your different media libraries
- FeatturetteFolderName - If you name your Featurette folder something else set it here
- Pushbullet Notifications - You can enable or disable (true/false) Pushbullet notifications here as well as set your ApiKey.
- Logging - You can customize the logging level and handlers in the
Logging
section.
- Output Directory - When you convert a movie or tv show it is expected that you are converting from location A (the path you pass in) to location B (hardcoded property). If you would like to change this behaviour then you will need to modify
convertMKV.py
.
- Commands - The individual commands that are used can be modified in the
Commands
section. For instance, if you do not use a password to encrypt/decrypt archive files then you could remove the-p{}
flag from thezip_command
andunzip_command
. Note, you would also need to modify where these commands are used in their respective methods and remove the password parameter from being passed in the string.format().