@ZileXa wrote:
The only way for Kodi to automatically recognize ALL episodes of every tv show, is if they are stored in a folder with the series name + the year. There are plenty of shows that will otherwise be recognized as an older tv show.
Since Trakt stores series name for every show with the (year), I thought I can use that (
trakt_series_name
) for Transmission download path and also for my move/rename task:# TEMPLATES ##### Series metainfo mainly for move and update tasks# series-metainfo: metainfo_series: yes thetvdb_lookup: yes transmission-series: transmission: <<: *transmission-settings main_file_only: yes include_subs: yes rename_like_files: yes content_filename: "{{trakt_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %} - [{{quality}}]{% endif %}{% if release_group|default(False) %} - [{{release_group}}]{% endif %}" path: "/{? folder.root ?}{? folder.downseries ?}{{trakt_series_name|default(series_name)|pathscrub}}/" # TASKS # Move series move-series: priority: 21 template: - disable-seen-retry - series-metainfo filesystem: path: "/{? folder.root ?}{? folder.downseries ?}" recursive: yes retrieve: files regexp: '.*\.(avi|mkv|mp4)$' accept_all: yes require_field: trakt_series_name move: to: "/{? folder.root ?}{? folder.series ?}{{trakt_series_name|escape|replace(''', '')|pathscrub}}/" rename: "{{trakt_series_name|escape|replace(''', '')|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %} - [{{quality}}]{% endif %}{% if release_group|default(False) %} - [{{release_group}}]{% endif %}" along: extensions: - srt - sub subdirs: - Subs clean_source: 50 kodi_library: action: scan category: video url: http://localhost port: 8080 list_add: - subtitle_list: list: subtitles path: "{{location}}" remove_after: 7 days exec: on_exit: phase: find "/{? folder.root ?}{? folder.downseries ?}"* -type d -empty -delete
Series are downloaded by creating a list in Flexget first, containing my Trakt series, then I use next_trakt_episodes to set the beginning of episodes. Then I use RSS and Discover to get the series. This all works flawlessly.
The problem:
When I actually needtrakt_series_name
to set the path, Transmission template falls back toseries_name
and my move task aborts becausetrakt_series_name
is a required field and not available, log:2017-07-30 01:00 CRITICAL plugin move-series Path value replacement `/media/ChilleTV/TVshows/{{trakt_series_name|escape|replace(''', '')|pathscrub}}/` failed: (UndefinedError) 'trakt_series_name' is undefined 2017-07-30 01:17 VERBOSE task move-series REJECTED: `American Gods - S01E01 - The Bone Orchard - [hdtv h264](1)` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `Atlanta.S01E01.HDTV.x264-FLEET` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `Atlanta.S01E02.HDTV.x264-FLEET` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `big.little.lies.s01e01.bdrip.x264-demand` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `big.little.lies.s01e02.bdrip.x264-demand` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `big.little.lies.s01e03.bdrip.x264-demand` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `big.little.lies.s01e04.bdrip.x264-demand` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `big.little.lies.s01e05.bdrip.x264-demand` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `big.little.lies.s01e06.bdrip.x264-demand` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `big.little.lies.s01e07.bdrip.x264-demand` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `Chance - S01E01 - The Summer of Love - [webdl h264](1)` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `friends.with.better.lives.111.hdtv-lol` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `friends.with.better.lives.112.hdtv-lol` by require_field plugin because required field trakt_series_name is not present 2017-07-30 01:17 VERBOSE task move-series REJECTED: `Great News - S01E01 - Pilot - [hdtv h264](1)` by require_field plugin because required field trakt_series_name is not present
How I can force Flexget to obtain
trakt_series_name
? There is plenty of information available because my download tasks also usetvmaze lookup
, besidestvdb_lookup
andtrakt_lookup
. Or is there another way to forcefully use series name + release year in Transmission download path and in my move task?
Posts: 3
Participants: 2