Flexget Configuration Files
Created by: Jeff Wilson
Available from: https://github.com/jawilson/flexget-config (originally located in https://github.com/jawilson/dotfiles)
I'm using the secrets plugin to hide my private credentials for various plugins. If you want to do this as well, you will need to create a secretfile.yml
file in the same directory as your config.yml
.
- Install Flexget
- Clone this repository into the
.flexget
directory of your home directorygit clone https://github.com/jawilson/flexget-config.git .flexget
- Set up your
secretfile.yml
- Run the Flexget daemon
flexget daemon start -d
I've also added the following line to my local crontab (crontab -e
):
@reboot /usr/local/bin/flexget daemon start -d >/dev/null 2>&1
My entire setup results in a single video file (.mkv
, .mp4
, etc) in the final destination with a nice name regardless if it's packed in a rar or not.
Here's the gist of how it works:
- Flexget accepts the torrent regardless if it's a rar-pack or not
- My custom
content_sort
plugin (available in this repository) changes themove_done
value if the torrent contains a.rar
- The torrent is added to Deluge
- Deluge is configured with the Execute plugin to run my
trigger-decompress.sh
script (also available in this repository) when any torrent is done downloading trigger-decompress.sh
simply calls the Flexget API and requests theSeries-Decompress
andMovies-Decompress
tasks be run- Flexget uses the
decompress
plugin to unpack the torrent to a 'staging' location, then it runs the appropriate*-Sort-Decompressed
task - The sort task checks for files in the 'staging' location from step #6 and renames and moves the files to their appropriate final location