]> git.rmz.io Git - dotfiles.git/commitdiff
flexget: if imdb_lookup fails, lookup folder
authorSamir Benmendil <samir.benmendil@gmail.com>
Sun, 29 Mar 2015 19:55:47 +0000 (20:55 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sun, 24 May 2015 16:52:40 +0000 (17:52 +0100)
flexget/config.yml

index 0c8c208f2f10ce34d4177c422bd5b5e6d8607913..9e90f82894d568a5c06556665cc846defb6de514 100644 (file)
@@ -375,7 +375,16 @@ tasks: # {{{1
         - '[Ss]ample'
 
     imdb_lookup: yes
+    if:
+      - movie_name is None:
+          manipulate:
+            - title:
+                extract: '([^/]*)/[^/]*$'
+                from: location
+          imdb_lookup: yes
+
     accept_all: yes
+    require_field: imdb_name
 
     set:
       destination: '/mnt/Skaro/Movies'