From 5bfde90be94b2e96b7868111957027c98fc73eb5 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Tue, 16 Jun 2026 14:56:30 -0400 Subject: [PATCH] altered template variables for flexget configuration file --- .../templates/user/flexget/config.yml.j2 | 137 ++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 roles/init-server/templates/user/flexget/config.yml.j2 diff --git a/roles/init-server/templates/user/flexget/config.yml.j2 b/roles/init-server/templates/user/flexget/config.yml.j2 new file mode 100644 index 0000000..9b931b9 --- /dev/null +++ b/roles/init-server/templates/user/flexget/config.yml.j2 @@ -0,0 +1,137 @@ +templates: + limited_series: + configure_series: + from: + filesystem: + path: + - ~/media/vids/series + # - ~/media/vids/features + recursive: false + retrieve: dirs + settings: + identified_by: ep + path: '~/media/vids/series/{{ series_name }}' + target: 1080p + timeframe: 2 weeks + parse_only: true + exists_series: + path: '~/media/vids/series/{{ series_name }}' + allow_different_qualities: better + feature_films: + csv: + url: 'file://%7e/media/vids/features/.films.csv' + values: + title: 1 + url: 2 + list_add: + - entry_list: films + porn_vids: + csv: + url: 'file://%7e/.xxx/.vids.csv' + values: + title: 1 + url: 2 + list_add: + - entry_list: pornos +tasks: + # @NOTE uncommenting aria2 block requires commenting out download and proxy blocks + populate_folders: + {% if download_mode == 'direct' %} + proxy: + https: 'socks5://<< sox.hostname >>:<< sox.port >>' + {% endif %} + if: + - "'batch' in title.lower()": reject + discover: + what: + - next_series_episodes: + from_start: true + backfill: false + from: + - nyaa: + category: anime eng + filter: trusted only + - search_rss: + url: 'https://nyaa.si/?f=2&c=1_2&q={{ search_term }}' + link: + - magneturi + - link + all_entries: false + - eztv: true + interval: 1 week + limit: 80 + template: limited_series + {% if flexget.download_mode == 'aria2' %} + aria2: + server: << aria.hostname >> + port: << aria.port >> + {% if aria.secret != None or aria.secret is defined %} + secret: << aria.secret >> + {% endif %} + {% if aria.credentials != None or aria.credentials is defined %} + username: << aria.credentials.username >> + password: << aria.credentials.password >> + {% endif %} + scheme: << aria.scheme >> + rpc_mode: json + rpc_path: jsonrpc + path: '~/downloads/media/vids/{{ series_name }}' + {% else %} + download: + temp: ~/.tmp + path: '~/downloads/flexget/vids/series/torrents/{{ series_name }}' + {% endif %} + # @NOTE uncommenting aria2 block requires commenting out download and proxy blocks + fap_queue: + {% if download_mode == 'direct' %} + proxy: + https: 'socks5://<< sox.hostname >>:<< sox.port >>' + {% endif %} + template: porn_vids + {% if flexget.download_mode == 'aria2' %} + aria2: + server: << aria.hostname >> + port: << aria.port >> + {% if aria.secret != None or aria.secret is defined %} + secret: << aria.secret >> + {% endif %} + {% if aria.credentials != None or aria.credentials is defined %} + username: << aria.credentials.username >> + password: << aria.credentials.password >> + {% endif %} + scheme: << aria.scheme >> + rpc_mode: json + rpc_path: jsonrpc + path: ~/downloads/.xxx/media/vids + {% elif flexget.download_mode == 'direct' %} + download: + temp: ~/.tmp + path: ~/downloads/.xxx/flexget/vids/torrents + {% endif %} + # @NOTE uncommenting aria2 block requires commenting out download and proxy blocks + film_queue: + {% if download_mode == 'direct' %} + proxy: + https: 'socks5://<< sox.hostname >>:<< sox.port >>' + {% endif %} + template: feature_films + {% if flexget.download_mode == 'aria2' %} + aria2: + server: << aria.hostname >> + port: << aria.port >> + {% if aria.secret != None or aria.secret is defined %} + secret: << aria.secret >> + {% endif %} + {% if aria.credentials != None or aria.credentials is defined %} + username: << aria.credentials.username >> + password: << aria.credentials.password >> + {% endif %} + scheme: << aria.scheme >> + rpc_mode: json + rpc_path: jsonrpc + path: ~/downloads/media/vids + {% elif flexget.download_mode == 'direct' %} + download: + temp: ~/.tmp + path: ~/downloads/flexget/vids/torrents + {% endif %} \ No newline at end of file