]> git.rmz.io Git - dotfiles.git/blobdiff - flexget/config.yml
flexget: manipulate series if lookup failed
[dotfiles.git] / flexget / config.yml
index 0646f438dcfbb61c9e7a893fc585d0fd768d2d9e..a155a0711e5964478d1b43c064a082879e4a3db4 100644 (file)
@@ -3,9 +3,12 @@ variables: private.yml
 
 templates: # {{{1
   email: # {{{2
-    email:
-      from: flexget@tardis
-      to: ramsi@localhost
+    notify:
+      task:
+        via:
+          - email:
+              from: flexget@tardis
+              to: ramsi@localhost
 
 
   torrents: # {{{2
@@ -378,6 +381,14 @@ tasks: # {{{1
         - '[Ss]ample'
 
     thetvdb_lookup: yes
+    if:
+      - "not has_field('tvdb_episode')":
+          manipulate:
+            - title:
+                extract: 'done/([^/]*)/[^/]*$'
+                from: location
+          thetvdb_lookup: yes
+
     all_series:
       parse_only: yes
     accept_all: yes
@@ -458,10 +469,13 @@ tasks: # {{{1
       list: move-tasks
     seen: local
     accept_all: yes
-    email:
-      from: flexget@tardis
-      to: ramsi@localhost
-      file_template: move
+    notify:
+      task:
+        template: move
+        via:
+          - email:
+              from: flexget@tardis
+              to: ramsi@localhost
 
 
   backfill-mail: # {{{2