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
deluge_torrent_complete
script (also available in this repository) when any torrent is done downloading deluge_torrent_complete
checks if the torrent is located in the directory we set in step #2, if not it skips to the last stepdeluge_torrent_complete
unpacks the first .rar file it finds in the torrent to a 'staging' locationdeluge_torrent_complete
calls flexget with a completely separate config,sorting.yml
(also available in this repository)- The
sorting.yml
config checks for files in the 'staging' location from step #6 and renames and moves the files to their appropriate final location
- Replace rar-unpacking script with Flexget task (#1)