]> git.rmz.io Git - dotfiles.git/blobdiff - flexget/config.yml
Makefile: add target for git
[dotfiles.git] / flexget / config.yml
index 27b333432a494639b429700002bf36bc4afcbcee..e15c26a9e5eac9661a68c8f0dbb4254f9b730677 100644 (file)
@@ -1,11 +1,14 @@
-secrets: private.yml
+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
@@ -27,22 +30,22 @@ templates: # {{{1
 
   usenet: # {{{2
     sabnzbd:
-      key: '{{secrets.sabnzbd.key}}'
-      url: '{{secrets.sabnzbd.url}}'
+      key: '{?sabnzbd.key?}'
+      url: '{?sabnzbd.url?}'
 
 
   usenet-movies: # {{{2
     inputs:
-      - rss: { url: 'https://www.usenet-crawler.com/rss?t=2040&dl=1&num=100{{secrets.crawler.api}}', silent: yes } # Movies HD
-      - rss: { url: 'https://newztown.co.za/rss?t=2040&dl=1&num=100{{secrets.newztown.api}}', silent: yes } # Movies HD
-      - rss: { url: 'https://api.drunkenslug.com/rss?t=2040&dl=1&num=100{{secrets.drunkenslug.api}}', silent: yes } # Movies HD
+      - rss: { url: 'https://www.usenet-crawler.com/rss?t=2040&dl=1&num=100{?crawler.api?}', silent: yes } # Movies HD
+      - rss: { url: 'https://newztown.co.za/rss?t=2040&dl=1&num=100{?newztown.api?}', silent: yes } # Movies HD
+      - rss: { url: 'https://api.drunkenslug.com/rss?t=2040&dl=1&num=100{?drunkenslug.api?}', silent: yes } # Movies HD
 
 
   usenet-tv: # {{{2
     inputs:
-      - rss: { url: 'https://www.usenet-crawler.com/rss?t=5030,5040&dl=1&num=100{{secrets.crawler.api}}', silent: yes } # TV SD/HD
-      - rss: { url: 'https://newztown.co.za/rss?t=5030,5040&dl=1&num=100{{secrets.newztown.api}}', silent: yes } # TV SD/HD
-      - rss: { url: 'https://api.drunkenslug.com/rss?t=2040&dl=1&num=100{{secrets.drunkenslug.api}}', silent: yes } # Movies HD
+      - rss: { url: 'https://www.usenet-crawler.com/rss?t=5030,5040&dl=1&num=100{?crawler.api?}', silent: yes } # TV SD/HD
+      - rss: { url: 'https://newztown.co.za/rss?t=5030,5040&dl=1&num=100{?newztown.api?}', silent: yes } # TV SD/HD
+      - rss: { url: 'https://api.drunkenslug.com/rss?t=2040&dl=1&num=100{?drunkenslug.api?}', silent: yes } # Movies HD
 
 
   filters: # {{{2
@@ -100,7 +103,9 @@ templates: # {{{1
         - 8 out of 10 cats
         - american dad
         - archer 2009
+        - arrested development
         - better call saul
+        - black mirror
         - boardwalk empire
         - breaking bad
         - broadchurch
@@ -113,6 +118,7 @@ templates: # {{{1
         - downton abbey
         - eureka
         - family guy
+        - fargo
         - foyle's war
         - futurama
         - game of thrones: { timeframe: 9 hours }
@@ -126,6 +132,7 @@ templates: # {{{1
         - qi: { special_ids: 'uncut' }
         - ray donovan
         - red dwarf
+        - rick and morty
         - sherlock
         - suits
         - the big bang theory
@@ -133,8 +140,8 @@ templates: # {{{1
         - the blacklist redemption
         - the cleveland show
         - the walking dead
-        - two and a half men
         - the wire: { quality: 720p+ }
+        - two and a half men
         - vinyl
         - westworld
 
@@ -143,8 +150,8 @@ templates: # {{{1
     configure_series:
       from:
         trakt_list:
-          username: '{{secrets.trakt.username}}'
-          account: '{{secrets.trakt.account}}'
+          username: '{?trakt.username?}'
+          account: '{?trakt.account?}'
           list: followlist
           type: shows
       settings: *default_settings
@@ -154,8 +161,8 @@ templates: # {{{1
     configure_series:
       from:
         trakt_list:
-          username: '{{secrets.trakt.username}}'
-          account: '{{secrets.trakt.account}}'
+          username: '{?trakt.username?}'
+          account: '{?trakt.account?}'
           list: backfill
           type: shows
       settings: # *default_settings
@@ -165,15 +172,15 @@ templates: # {{{1
       interval: 1 hours
       what:
         - trakt_list:
-            username: '{{secrets.trakt.username}}'
-            account: '{{secrets.trakt.account}}'
+            username: '{?trakt.username?}'
+            account: '{?trakt.account?}'
             list: backfill
             type: episodes
         - next_series_episodes:
             from_start: yes
       from:
         - newznab:
-            url: 'https://www.usenet-crawler.com/api?apikey={{secrets.crawler.apikey}}&t=tvsearch&cat=5030,5040&extended=1'
+            url: 'https://www.usenet-crawler.com/api?apikey={?crawler.apikey?}&t=tvsearch&cat=5030,5040&extended=1'
             category: tv
     all_series: yes
 
@@ -221,7 +228,7 @@ templates: # {{{1
   #       - emit_movie_queue: yes
   #     from:
   #       - newznab:
-  #           url: 'https://www.usenet-crawler.com/api?apikey={{secrets.crawler.apikey}}&t=movie&extended=1&cat=2040'
+  #           url: 'https://www.usenet-crawler.com/api?apikey={?crawler.apikey?}&t=movie&extended=1&cat=2040'
   #           category: movie
   #     interval: 7 days  # search each entry only once a week
 
@@ -229,8 +236,8 @@ templates: # {{{1
   trakt-add-collection: # {{{2
     list_add:
       - trakt_list:
-          username: '{{secrets.trakt.username}}'
-          account: '{{secrets.trakt.account}}'
+          username: '{?trakt.username?}'
+          account: '{?trakt.account?}'
           list: collection
 
 
@@ -260,8 +267,8 @@ tasks: # {{{1
   # dl-movies-trakt: # {{{2
   #   priority: 10
   #   trakt_list:
-  #     username: '{{secrets.trakt.username}}'
-  #     account: '{{secrets.trakt.account}}'
+  #     username: '{?trakt.username?}'
+  #     account: '{?trakt.account?}'
   #     list: watchlist
   #     type: movies
   #   accept_all: yes
@@ -276,8 +283,8 @@ tasks: # {{{1
   #   crossmatch:
   #     from:
   #       - trakt_list:
-  #           username: '{{secrets.trakt.username}}'
-  #           account: '{{secrets.trakt.account}}'
+  #           username: '{?trakt.username?}'
+  #           account: '{?trakt.account?}'
   #           list: watchlist
   #           type: movies
   #     fields: [imdb_id]
@@ -358,10 +365,10 @@ tasks: # {{{1
     manual: yes
     template:
       - trakt-add-collection
-    seen: local
     disable:
       - retry_failed
-      - nzb_size
+      - seen
+      - seen_info_hash
     no_entries_ok: yes
 
     filesystem:
@@ -377,6 +384,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
@@ -405,10 +420,10 @@ tasks: # {{{1
     manual: yes
     template:
       - trakt-add-collection
-    seen: local
     disable:
       - retry_failed
-      - nzb_size
+      - seen
+      - seen_info_hash
     no_entries_ok: yes
 
     filesystem:
@@ -457,10 +472,13 @@ tasks: # {{{1
       list: move-tasks
     seen: local
     accept_all: yes
-    email:
-      from: flexget@tardis
-      to: ramsi@localhost
-      template: move
+    notify:
+      task:
+        template: move
+        via:
+          - email:
+              from: flexget@tardis
+              to: ramsi@localhost
 
 
   backfill-mail: # {{{2