From a1827ea76e025c86f94aa236b6d770f8f536bf83 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Fri, 30 Mar 2018 14:54:15 +0100 Subject: [PATCH] flexget: use guessit for parsing This seems to work a lot better and should fix all these failed parses based on filenames having hashes. --- flexget/config.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/flexget/config.yml b/flexget/config.yml index afc5586..6a4588b 100644 --- a/flexget/config.yml +++ b/flexget/config.yml @@ -385,14 +385,13 @@ tasks: # {{{1 reject: - '[Ss]ample' - thetvdb_lookup: yes - if: - - "not has_field('tvdb_episode')": - manipulate: - - title: - extract: 'done/([^/]*)/[^/]*$' - from: location - thetvdb_lookup: yes + # guessit can extract info from full paths which may contain more info + manipulate: + - title: + from: location + + parsing: + series: guessit all_series: parse_only: yes @@ -439,15 +438,15 @@ tasks: # {{{1 reject: - '[Ss]ample' - imdb_lookup: yes - if: - - movie_name is None: - manipulate: - - title: - extract: 'done/([^/]*)/[^/]*$' - from: location - imdb_lookup: yes + # guessit can extract info from full paths which may contain more info + manipulate: + - title: + from: location + parsing: + movie: guessit + + imdb_lookup: yes accept_all: yes require_field: - imdb_name @@ -506,6 +505,7 @@ tasks: # {{{1 retrieve: files regexp: '.*\.(avi|mkv|mp4|webm|m4v)$' + #TODO use guessit like in move-series manipulate: - title: from: location @@ -544,6 +544,7 @@ tasks: # {{{1 retrieve: files regexp: '.*\.(avi|mkv|mp4|webm|m4v)$' + #TODO use guessit like in move-series manipulate: - title: from: location -- 2.48.1