From: Samir Benmendil Date: Fri, 30 Mar 2018 13:54:15 +0000 (+0100) Subject: flexget: use guessit for parsing X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/a1827ea76e025c86f94aa236b6d770f8f536bf83 flexget: use guessit for parsing This seems to work a lot better and should fix all these failed parses based on filenames having hashes. --- 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