templates:
tv:
configure_series:
from:
thetvdb_favorites:
account_id: 230B039A30
settings:
quality: 720p
exists_series:
- /media/tv
- /media/incomplete
thetvdb_lookup: yes
set:
path: /media/incomplete
movedone: "/media/tv/{{ series_name }}/Season {{ series_season }}"
content_filename: |
{{ series_name }} - {{ series_id }}
{% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name }} {% endif %} - {{ quality|upper }}
{% if proper_count %} - proper{% if proper_count > 1 %}{{ proper_count }}{% endif %}{% endif %}
deluge:
main_file_only: yes
tasks:
betterfeed:
priority: 1
template: tv
rss: http://feed1.com/feed.xml
backupfeed:
priority: 2
template: tv
rss: http://feed2.com/feed.xml
First we create a template called 'tv' that holds all the plugin information we need to grab our series. Inside the tv template here is what is happening:
from
key to input any shows you have marked as a favorite on thetvdb.com. Your account_id can be found on your account page at thetvdb.com You can specify all of the options of the series plugin under the settings
key, this example shows the quality option.content_filename
movedone
: Deluge will move the completed files to this location. We use variable substitution to put the files in their own series and season folderspath
: Deluge will download the torrent to this locationmain_file_only
: All other files but main (largest) will be set to 'do not download' in Deluge. (If you use the delete partials Deluge plugin these files can be cleaned up when you remove the torrent from Deluge.)The result of setting the movedone and content_filename using string replacement means that all your shows will end up like this example:
/media/tv/Lost/Season 1/Lost - S01E03 - Tabula Rasa - 720P.mkv
You can adjust those lines to match your naming standard.
In the tasks section, we define 2 tasks in case one is faster, or one goes down. The priority plugin is used to make sure that your preferred feed is checked before your backup feed when FlexGet is run.