]> git.rmz.io Git - dotfiles.git/commitdiff
flexget: use guessit for parsing
authorSamir Benmendil <me@rmz.io>
Fri, 30 Mar 2018 13:54:15 +0000 (14:54 +0100)
committerSamir Benmendil <me@rmz.io>
Fri, 30 Mar 2018 14:22:35 +0000 (15:22 +0100)
This seems to work a lot better and should fix all these failed parses
based on filenames having hashes.

flexget/config.yml

index afc5586d8ee12224c97b4692d6db6d423fac69f5..6a4588bc6e41d99508674990a70adc66e1dd90a7 100644 (file)
@@ -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