forked from epikurus/flexget_config
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.yml
executable file
·527 lines (463 loc) · 12.4 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
variables: secrets.yml
web_server: yes
schedules:
- tasks: ['populate-*', 'clean-*', 'update-*']
schedule:
minute: 0,30
- tasks: ['purge-*', 'fill-*'] # , '*-rss', '*-magnets'
schedule:
minute: 0,30
- tasks: ['*-discover', '*-manual']
schedule:
minute: 0,15,30,45
templates:
##### Series config
series:
thetvdb_lookup: yes
configure_series:
from:
entry_list: trakt-series
settings:
timeframe: 12 hours
target: 1080p+ h265
propers: 24 hours
identified_by: ep
content_size:
min: 150
max: 3600
content_filter:
require:
- '*.mkv'
##### Movies config
movie-list-match:
list_match:
from:
- movie_list: trakt-movies
movies-3d:
tmdb_lookup: yes
movie_list: trakt-movies
quality: 1080p+ webdl+
content_size:
min: 1000
max: 25000
regexp:
accept:
- (3D|3d)
reject:
- (2D|2d)
movies-2160p-webdl:
tmdb_lookup: yes
movie_list: trakt-movies
regexp:
accept:
- (2160p|4K|4k)
reject:
- (480|720|1080)
from: title
quality: webdl+
content_size:
min: 2000
max: 60000
movies-2160p-h264:
tmdb_lookup: yes
movie_list: trakt-movies
regexp:
accept:
- (2160p|4K|4k)
reject:
- (480|720|1080)
from: title
quality: h264+
content_size:
min: 2000
max: 60000
movies-1080p:
template:
- movie-list-match
tmdb_lookup: yes
movie_list: trakt-movies
quality: 1080i+ hdtv+ h265
content_size:
min: 500
max: 18000
movies-720p:
template:
- movie-list-match
tmdb_lookup: yes
movie_list: trakt-movies
quality: 720i+ hdtv+
content_size:
min: 250
max: 5000
trakt-movies-remove:
list_remove:
- movie_list: trakt-movies
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.moviesqueue ?}'
type: movies
trakt-movies-add:
list_add:
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.movieswatchlist ?}'
type: movies
##### Transmission config
transmission-anchors:
_transmission-settings: &transmission-settings
host: '{? transmission.host ?}'
port: 9091
username: '{? transmission.user ?}'
password: '{? transmission.pass ?}'
##### Common rejections
reject:
regexp:
reject:
- (s|d)ub(s|bed|lado|titulado)?\b
- \bdual\b
- \b(fr)(ench)?\b
- \b(ita)(lian)?\b
- \b(spa)(nish)?\b
- \b(ger)(man)?\b
- \bcastellano\b
- \brus(sian)?\b
content_filter:
reject:
- '*.rar'
- '*.zip'
##### ADVANCED SETTINGS #####
##### Global config
global:
no_entries_ok: yes
pathscrub: windows
free_space:
path: '/{? folder.root ?}'
space: 5000
# Requires log_filter plugin
log_filter:
task:
- marked seen
- because quality already downloaded
- because episode has already been downloaded
- Task does not have any
move:
- left because it exceeds safety value
- does not exists (anymore)
urlrewriter:
- URL rewritten to
enzyme.mkv:
- Reading
- Processing
enzyme.parsers.ebml.core:
- ignored
- Maximum level
subliminal.video:
- Scanning video
parser_internal:
- appears to be an episode pack
content_size:
- rejecting
search_rss:
- Error
assume_quality:
- ""
utils.requests:
- Waiting
##### Common torrents config
torrents:
torrent_alive:
min_seeds: 3
reject_for: 15 minutes
magnets: no
# Might need to disable if you are getting errors connecting to https sources
# Can remove if you upgrade to python 2.7.9+ or install requests[security]
verify_ssl_certificates: no
domain_delay:
iptorrents.eu: 1 seconds
##### Transmission series config
transmission-series:
transmission:
<<: *transmission-settings
addpaused: no
# main_file_only: yes
include_subs: yes
rename_like_files: yes
content_filename: "{% if tvdb_episode|default(False) and tvdb_ep_name|default(False) %}{{tvdb_series_name|pathscrub|re_replace(' \\([0-9]*\\)','')}} {{tvdb_season}}x{{tvdb_episode|pad(2)}} - {{tvdb_ep_name|pathscrub}}{% else %}{{title}}{% endif %}"
# content_filename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %} - [{{quality}}]{% endif %}"
path: "/{? folder.root ?}{? folder.series ?}{{tvdb_series_name|default(series_name)|pathscrub}}/"
##### Transmission movies config
transmission-movies:
transmission:
<<: *transmission-settings
addpaused: no
main_file_only: no
# include_subs: yes
rename_like_files: yes
content_filename: "{{tmdb_name|pathscrub}} ({{tmdb_year}}){% if quality|default(False) %} - [{{quality}}]{% endif %}"
path: "/{? folder.root ?}{? folder.movies ?}{{movie_name|pathscrub}}"
##### Pushbullet config
pushbullet:
notify:
entries:
via:
- pushbullet:
api_key: '{? pushbullet.api ?}'
channel: '{? pushbullet.channel ?}'
##### Disable builtins for some tasks
disable-seen-retry:
disable:
- seen
- seen_info_hash
- retry_failed
##### Series metainfo mainly for move and update tasks
series-metainfo:
trakt_lookup: yes
imdb_lookup: yes
metainfo_series: yes
thetvdb_lookup: yes
##### Guessit parsing for some series tasks and anime, not applied to all tasks because it causes issues with "name (year)" based series, like scandal
series-guessit:
parsing:
series: guessit
##### Movies metainfo mainly for move and update tasks
movies-metainfo:
tmdb_lookup: yes
parsing:
movie: guessit
download-movies-discover-base:
template:
- reject
- torrents
- transmission-movies
- pushbullet
- trakt-movies-remove
- trakt-movies-add
exists_movie:
- '/{? folder.root ?}{? folder.movies ?}'
discover:
release_estimations: loose
interval: 15 minutes
what:
- movie_list: trakt-movies
from:
- iptorrents:
rss_key: '{? iptorrents.rss_key ?}'
uid: 1486500
password: '{? iptorrents.password ?}'
category:
- 87 #Movies 3D
- 48 #Movie HD
- 20 #Movie Web DL
- Movie-HD-Bluray
- Movie-MP4
- Movie-BD-Rip
- Movie-3D
# list_add:
# - trakt_list:
# account: '{? trakt.account ?}'
# list: '{? trakt.movieswatchlist ?}'
# type: movies
tasks:
##### Populates the series database with the files on the library, to avoid duplicate downloads
populate-series-db:
priority: 1
template:
- series-metainfo
seen: local
filesystem:
path: '/{? folder.root ?}{? folder.series ?}'
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
accept_all: yes
configure_series:
from:
filesystem:
path: '/{? folder.root ?}{? folder.series ?}'
retrieve: dirs
settings:
tracking: no
##### Purge the series list to allow full sync with trakt series list
purge-series-list:
priority: 2
template:
- disable-seen-retry
entry_list: trakt-series
accept_all: yes
list_remove:
- entry_list: trakt-series
##### Fetch, format and output trakt series list to a custom entry list
fill-series-list:
priority: 3
template:
- disable-seen-retry
- series-metainfo
trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.series ?}'
type: shows
accept_all: yes
thetvdb_lookup: yes
set:
title: "{{ series_name|escape|replace(''', '') }}"
list_add:
- entry_list: trakt-series
##### Download episodes from manually downloaded torrents
download-series-manual:
priority: 11
template:
- disable-seen-retry
- series-metainfo
- series-guessit
- transmission-series
- pushbullet
filesystem:
path: '/{? folder.root ?}{? folder.series ?}'
mask: '*.torrent'
accept_all: yes
exec:
on_output:
for_accepted: rm -f "{{location}}"
##### Discover and download older episodes and pilots from recently added series
download-series-discover:
priority: 14
template:
- series
- reject
- torrents
- transmission-series
- pushbullet
discover:
release_estimations: ignore
interval: 5 minutes
what:
- next_series_episodes: yes
from:
- iptorrents:
rss_key: '{? iptorrents.rss_key ?}'
uid: 1486500
password: '{? iptorrents.password ?}'
category:
- TV-480p
- TV-SD-x264
- TV-Web-DL
- TV-x264
- 99 #TV-x265
- TV-MP4
##### Remove manually downloaded movies from the movie queue and trakt list
clean-movie-queue:
priority: 22
template:
- disable-seen-retry
- movies-metainfo
- trakt-movies-remove
filesystem:
path: '/{? folder.root ?}{? folder.movies ?}'
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
accept_all: yes
##### Fill the movie queue with movies from trakt list
fill-movie-queue:
priority: 23
trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.moviesqueue ?}'
type: movies
strip_dates: yes
accept_all: yes
list_add:
- movie_list: trakt-movies
##### Download movies manually downloaded torrents
download-movies-manual:
priority: 24
template:
- disable-seen-retry
- movies-metainfo
- transmission-movies
- pushbullet
- trakt-movies-remove
filesystem:
path: '/{? folder.root ?}{? folder.movies ?}'
mask: '*.torrent'
accept_all: yes
exec:
on_output:
for_accepted: rm -f "{{location}}"
##### Discover and download 3D movies
download-movies-3D-discover:
priority: 24
template:
- download-movies-discover-base
- movies-3d
##### Discover and download 2160p movies
download-movies-2160p-webdl-discover:
priority: 25
template:
- download-movies-discover-base
- movies-2160p-webdl
download-movies-2160p-h264-discover:
priority: 25
template:
- download-movies-discover-base
- movies-2160p-h264
##### Discover and download 1080p movies
download-movies-1080p-discover:
priority: 26
template:
- download-movies-discover-base
- movies-1080p
##### Discover and download 720p movies, if the movie is not recent
download-movies-720p-discover:
priority: 27
template:
- download-movies-discover-base
- movies-720p
##### Clean finished torrents from transmission
# clean-transmission:
# priority: 37
# disable: details
# clean_transmission:
# <<: *transmission-settings
# finished_for: 30 day
##### Update trakt series list from local series folders, excluding the ones that already ended
update-series-list:
priority: 41
template:
- disable-seen-retry
- series-metainfo
filesystem:
path: '/{? folder.root ?}{? folder.series ?}'
retrieve: dirs
manipulate:
- title:
replace:
regexp: '$'
format: ' S01E01'
accept_all: yes
if:
- tvdb_status == 'Ended': reject
list_add:
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.series ?}'
type: shows
##### Clean the series that already ended from trakt series list
clean-series-list:
priority: 43
delay: 8 day
template:
- disable-seen-retry
- series-metainfo
- pushbullet
trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.series ?}'
type: shows
if:
- tvdb_status == 'Ended': accept
list_remove:
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.series ?}'
type: shows