-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
745 lines (652 loc) · 19.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
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
variables: secretfile.yml
web_server:
bind: 0.0.0.0 # IP V4
port: 58080
web_ui: yes
schedules:
# Run download tasks
- tasks: 'download*'
interval:
minutes: 30
# Update movie queues
- tasks: [queue_movies*]
interval:
hours: 2
# Maintainence
- tasks: 'maintenance_clear_torrents'
interval:
hours: 1
- tasks: 'maintenance_movie_queue'
interval:
days: 7
# Sort Files
- tasks: [sorting*]
interval:
minutes: 15
templates:
global:
transmission:
host: '{? transmission.host ?}'
port: 21772
username: '{? transmission.username ?}'
password: '{? transmission.password ?}'
ratio: 1
main_file_only: yes
skip_files:
- '*.nfo'
- '*.sfv'
- '*[sS]ample*'
- '*.txt'
include_subs: yes
free_space:
path: '{? roots.media ?}'
space: 20000
pathscrub: windows
regexp:
reject:
- (s|d)ub(s|bed)?\b: {from: title} # Block any subbed/dubbed/etc videos
- \b(duo|tri|quadri|tetra|penta)logy\b: {from: title} # Block series, only accept one at a time
- \b3-?D\b: {from: title} # I don't have any 3D displays
- \btrailer\b: {from: title} # I've gotten a few trailers that matched as movies. VERY annoying
- \bR5\b: {from: title} # The following are poor quality types that somehow got through the quality
- \bWEBSCR\b: {from: title} # features usually due to the title including a keyword like "720p" as well
- \bscreener\b: {from: title}
- \bTS\b: {from: title}
- \bCam\b: {from: title}
- '{C_P}': {from: title} # The following are groups with poor quality releases
- TrTd TeaM: {from: title}
- \[TNTVillage\]: {from: title}
- \[facepalm\]: {from: title}
- \bASAP\b: {from: title}
torrent_alive:
min_seeds: 20
reject_for: 1 day
content_filter:
require:
- '*.avi'
- '*.mkv'
- '*.mpg'
- '*.mp4'
- '*.mpeg'
reject:
- 'password.txt'
- '*.wmv'
- '*.r0*'
- '*.part0*'
require_mainfile: yes
domain_delay:
bt-chat.com: 5 seconds
torrentz.eu: 10 seconds
# The Pirate Bay ssl certs always fail
verify_ssl_certificates: no
# Need to reject magnets in order for content filtering to work
magnets: no
################################################################################
#
# Global Settings
#
################################################################################
template_tv_global:
include: [ input/tv_input.yml ]
# Impose reasonable size constraints
content_size:
max: 5000
min: 20
# Prevent from downloading shows that were aquired manually
exists_series:
- '{? roots.media ?}/{? directories.tv_shows ?}/{{ series_name }}'
- '{? roots.media ?}/{? directories.kids_tv ?}/{{ series_name }}'
# Look up info on TheTVDB.com to fill in extra info
thetvdb_lookup: yes
set_series_begin: yes
max_reruns: 1
discover:
what:
- next_series_episodes:
from_start: yes
backfill: yes
from:
- limetorrents:
category: tv
order_by: seeds
- piratebay:
category: highres tv
sort_by: seeds
- rarbg:
category: HDTV
sorted_by: seeders
template_tv:
set:
path: '{? roots.whatbox ?}/{? directories.tv_shows ?}/{{ series_name }}/'
content_filename: '{{ series_name }} - {{ series_season|pad(2) }}x{{ series_episode|pad(2) }}'
queuetotop: yes
template_carrie_tv:
set:
path: '{? roots.whatbox ?}/{? directories.carrie_tv ?}/{{ series_name }}/'
content_filename: '{{ series_name }} - {{ series_season|pad(2) }}x{{ series_episode|pad(2) }}'
queuetotop: yes
template_kids_tv:
set:
path: '{? roots.whatbox ?}/{? directories.kids_tv ?}/{{ series_name }}/'
content_filename: '{{ series_name }} - {{ series_season|pad(2) }}x{{ series_episode|pad(2) }}'
queuetotop: yes
template_movies_global:
interval: 1 hour
imdb_lookup: yes
#include: [ input/movie_input.yml ]
# Some feeds might include TV Shows, ignore them
regexp:
reject:
- s\d+e\d+: {from: title}
- '\d{4}.\d{2}.\d{2}': {from: title}
- \d+x\d+: {from: title}
- \baac2: {from: title} # No 2 channel audio
# Impose reasonable size constraints
content_size:
max: 10000
min: 700
seen_movies: strict # Don't download movies we've already seen
# Check for already downloaded or currently downloading movies
exists_movie:
- '{? roots.media ?}/{? directories.kids_movies ?}'
- '{? roots.media ?}/{? directories.movies ?}'
- '{? roots.downloads ?}/{? directories.kids_movies ?}'
- '{? roots.downloads ?}/{? directories.movies ?}'
template_movies:
discover:
what:
- movie_list: Movies
from:
- rarbg:
category:
- x264 720p
- x264 1080p
sorted_by: seeders
- piratebay:
category: movies
sort_by: seeds
list_match:
from:
- movie_list: Movies
action: accept
remove_on_match: yes
set:
path: '{? roots.whatbox ?}/{? directories.movies ?}/{{imdb_name}} ({{imdb_year}})/'
content_filename: '{{ movie_name }} {{movie_year}}'
queuetotop: yes
list_remove:
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.watchlist ?}'
template_carrie_movies:
discover:
what:
- movie_list: Carrie
from:
- rarbg:
category:
- x264 720p
- x264 1080p
sorted_by: seeders
- piratebay:
category: movies
sort_by: seeds
list_match:
from:
- movie_list: Carrie
action: accept
remove_on_match: yes
set:
path: '{? roots.whatbox ?}/{? directories.carrie_movies ?}/{{imdb_name}} ({{imdb_year}})/'
content_filename: '{{ movie_name }} {{movie_year}}'
queuetotop: yes
list_remove:
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.carrie ?}'
template_kids_movies:
discover:
what:
- movie_list: Kids
from:
- rarbg:
category:
- x264 720p
- x264 1080p
sorted_by: seeders
- piratebay:
category: movies
sort_by: seeds
list_match:
from:
- movie_list: Kids
action: accept
remove_on_match: yes
quality: hdtv+ xvid+
set:
path: '{? roots.whatbox ?}/{? directories.kids_movies ?}/{{imdb_name}} ({{imdb_year}})/'
content_filename: '{{ movie_name }} {{movie_year}}'
queuetotop: yes
list_remove:
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.kids ?}'
################################################################################
#
# Settings for finding new series premieres
#
################################################################################
template_tv_premieres:
# The entry has to have the tvdb_genres field so I can filter by it
require_field:
- tvdb_genres
- tvdb_first_air_date
# Make sure plenty of people are seeding it, otherwise it may not be that good
torrent_alive:
min_seeds: 50
# Block these genres if they exist in the list of tvdb_genres at all
regexp:
reject:
- talk show: {from: tvdb_genres}
- game show: {from: tvdb_genres}
- reality: {from: tvdb_genres}
- children: {from: tvdb_genres}
- home and garden: {from: tvdb_genres}
- documentary: {from: tvdb_genres}
- travel: {from: tvdb_genres}
if:
# Block show if genres contains only 'Drama'
- "tvdb_genres == ['Drama']": reject
# Block premieres that weren't within the last 60 days
- tvdb_first_air_date != None and tvdb_first_air_date < now - timedelta(days=60): reject
# Accept all series premieres
series_premiere:
timeframe: 1 days
quality: 720p+ hdtv+ <=h264
# Global settings for local torrent downloads
template_local_torrents:
disable:
- seen
- seen_info_hash
- inputs
- exists_series
- regexp
- content_size
- torrent_alive
plugin_priority:
exec: 0
exec:
on_output:
for_accepted: rm '{{location}}'
accept_all: yes
no_entries_ok: yes
tasks:
################################################################################
#
# TV Tasks
#
################################################################################
#-----------------------------------------------------------------------------
# Find new TV premieres
#-----------------------------------------------------------------------------
download_tv_premieres:
priority: 40
seen: local
parsing:
series: internal
template:
- template_tv_global
- template_tv_premieres
- template_tv
#-----------------------------------------------------------------------------
# Track existing TV shows and New Shows from trakt.tv
#-----------------------------------------------------------------------------
download_tv:
priority: 50
seen: local
parsing:
series: internal
template:
- template_tv_global
- template_tv
configure_series:
settings:
target: 720p+ hdtv+ <=h264
quality: webrip+
identified_by: ep
tracking: backfill
from:
trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.watchlist ?}'
type: shows
filesystem:
retrieve: dirs
recursive: False
path:
- '{? roots.media ?}/{? directories.tv_shows ?}'
download_tv_carrie:
priority: 50
seen: local
parsing:
series: internal
template:
- template_tv_global
- template_carrie_tv
configure_series:
settings:
target: 720p+ hdtv+ <=h264
quality: webrip+
identified_by: ep
tracking: backfill
from:
trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.carrie ?}'
type: shows
filesystem:
retrieve: dirs
recursive: False
path:
- '{? roots.media ?}/{? directories.carrie_tv ?}'
#-----------------------------------------------------------------------------
# Track existing Kids TV shows
#-----------------------------------------------------------------------------
download_tv_kids:
priority: 60
seen: local
parsing:
series: internal
template:
- template_tv_global
- template_kids_tv
torrent_alive:
min_seeds: 5
reject_for: 1 day
configure_series:
settings:
target: hdtv+
quality: webrip+ <=h264
identified_by: ep
tracking: backfill
from:
trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.kids ?}'
type: shows
filesystem:
retrieve: dirs
recursive: False
path:
- '{? roots.media ?}/{? directories.kids_tv ?}'
################################################################################
#
# Movie Tasks
#
################################################################################
queue_movies_watchlist:
priority: 101
template: no_global
trakt_list:
username: '{? trakt.account ?}'
account: '{? trakt.account ?}'
list: '{? trakt.watchlist ?}'
type: movies
accept_all: yes
list_add:
- movie_list: Movies
queue_movies_kids:
priority: 103
template: no_global
trakt_list:
username: '{? trakt.account ?}'
account: '{? trakt.account ?}'
list: '{? trakt.kids ?}'
type: movies
accept_all: yes
list_add:
- movie_list: Kids
queue_movies_carrie:
priority: 102
template: no_global
trakt_list:
username: '{? trakt.account ?}'
account: '{? trakt.account ?}'
list: '{? trakt.carrie ?}'
type: movies
accept_all: yes
list_add:
- movie_list: Carrie
#-----------------------------------------------------------------------------
# Main movie download task
#-----------------------------------------------------------------------------
download_movies_1080p:
priority: 110
template:
- template_movies_global
- template_movies
quality: 1080p+ bluray+ <=h264
# Delay sets a window to allow for higher resolution videos
download_movies_720p:
priority: 120
template:
- template_movies_global
- template_movies
quality: 720p+ webdl+ xvid+
delay: 2 days
download_movies_1080p_carrie:
priority: 110
template:
- template_movies_global
- template_carrie_movies
quality: 1080p+ bluray+ <=h264
# Delay sets a window to allow for higher resolution videos
download_movies_720p_carrie:
priority: 120
template:
- template_movies_global
- template_carrie_movies
quality: 720p+ webdl+ xvid+
delay: 2 days
download_movies_kids:
priority: 120
template:
- template_movies_global
- template_kids_movies
quality: hdtv+ xvid+
################################################################################
#
# File sorting
#
################################################################################
sorting_tv:
no_entries_ok: yes
disable:
- seen
- retry_failed
template: no_global
imdb_lookup: yes
thetvdb_lookup: yes
filesystem:
path: '{? roots.downloads ?}/{? directories.tv_shows ?}'
regexp: '.*\.(mkv|mp4|avi|mpg|mpeg)$'
recursive: yes
configure_series:
from:
filesystem:
- '{? roots.downloads ?}/{? directories.tv_shows ?}'
settings:
parse_only: yes
regexp:
reject:
- sample
require_field: series_name
accept_all: yes
move:
to: '{? roots.media ?}/{? directories.tv_shows ?}/{{ series_name }}/Season {{series_season}}/'
rename: '{{ series_name }} - {{ series_season|pad(2) }}x{{ series_episode|pad(2) }}'
exec:
allow_background: yes
auto_escape: yes
on_exit:
phase: "/bin/find '{? roots.downloads ?}/{? directories.tv_shows ?}' -type f -size -100M"
sorting_carrie_tv:
no_entries_ok: yes
disable:
- seen
- retry_failed
template: no_global
imdb_lookup: yes
thetvdb_lookup: yes
filesystem:
path: '{? roots.downloads ?}/{? directories.carrie_tv ?}'
regexp: '.*\.(mkv|mp4|avi|mpg|mpeg)$'
recursive: yes
configure_series:
from:
filesystem:
- '{? roots.downloads ?}/{? directories.carrie_tv ?}'
settings:
parse_only: yes
regexp:
reject:
- sample
require_field: series_name
accept_all: yes
move:
to: '{? roots.media ?}/{? directories.tv_shows ?}/{{ series_name }}/Season {{series_season}}/'
rename: '{{ series_name }} - {{ series_season|pad(2) }}x{{ series_episode|pad(2) }}'
exec:
allow_background: yes
auto_escape: yes
on_exit:
phase: "/bin/find '{? roots.downloads ?}/{? directories.carrie_tv ?}' -type f -size -100M"
sorting_kids_tv:
no_entries_ok: yes
disable:
- seen
- retry_failed
template: no_global
imdb_lookup: yes
thetvdb_lookup: yes
filesystem:
path: '{? roots.downloads ?}/{? directories.kids_tv ?}'
regexp: '.*\.(mkv|mp4|avi|mpg|mpeg)$'
recursive: yes
configure_series:
from:
filesystem:
- '{? roots.downloads ?}/{? directories.kids_tv ?}'
settings:
parse_only: yes
regexp:
reject:
- sample
require_field: series_name
accept_all: yes
move:
to: '{? roots.media ?}/{? directories.kids_tv ?}/{{ series_name }}/Season {{series_season}}/'
rename: '{{ series_name }} - {{ series_season|pad(2) }}x{{ series_episode|pad(2) }}'
exec:
allow_background: yes
auto_escape: yes
on_exit:
phase: "/bin/find '{? roots.downloads ?}/{? directories.kids_tv ?}' -type f -size -100M"
sorting_movies:
no_entries_ok: yes
disable:
- seen
- retry_failed
template: no_global
imdb_lookup: yes
filesystem:
path: '{? roots.downloads ?}/{? directories.movies ?}'
regexp: '.*\.(mkv|mp4|avi|mpg|mpeg)$'
recursive: yes
require_field: imdb_name
accept_all: yes
move:
to: '{? roots.media ?}/{? directories.movies ?}/{{imdb_name}} ({{imdb_year}})'
rename: '{{imdb_name}} ({{imdb_year}})'
clean_source: 300
exec:
allow_background: yes
auto_escape: yes
on_exit:
phase: "/bin/find '{? roots.downloads ?}/{? directories.movies ?}' -type f -size -100M"
sorting_kids_movies:
no_entries_ok: yes
disable: seen
template: no_global
imdb_lookup: yes
filesystem:
path: '{? roots.downloads ?}/{? directories.kids_movies ?}'
regexp: '.*\.(mkv|mp4|avi|mpg|mpeg)$'
recursive: yes
require_field: imdb_name
accept_all: yes
move:
to: '{? roots.media ?}/{? directories.kids_movies ?}/{{imdb_name}} ({{imdb_year}})'
rename: '{{imdb_name}} ({{imdb_year}})'
clean_source: 300
exec:
allow_background: yes
auto_escape: yes
on_exit:
phase: "/bin/find '{? roots.downloads ?}/{? directories.kids_movies ?}' -type f -size -100M"
################################################################################
#
# Maintainence Tasks
#
################################################################################
maintenance_movie_queue:
template: no_global
disable:
- seen
- seen_info_hash
- seen_movies
accept_all: yes
filesystem:
- '{? roots.downloads ?}/{? directories.movies ?}'
- '{? roots.downloads ?}/{? directories.kids_movies ?}'
imdb_lookup: yes
require_field: [movie_name, movie_year]
list_remove:
- trakt_list:
account: '{? trakt.account ?}'
list: '{? trakt.watchlist ?}'
type: movies
strip_dates: yes
- movie_list: Movies
maintenance_clear_torrents:
clean_transmission:
host: '{? transmission.host ?}'
port: 21772
username: '{? transmission.username ?}'
password: '{? transmission.password ?}'
finished_for: 4 hours
delete_files: no
disable: details
maintenance_seed_series_db:
template: no_global
#disable: builtins
thetvdb_lookup: yes
trakt_lookup: yes
configure_series:
from:
filesystem:
- '{? roots.media ?}/{? directories.tv_shows ?}'
- '{? roots.media ?}/{? directories.kids_tv ?}'
- '{? roots.media ?}/{? directories.carrie_tv ?}'
settings:
identified_by: auto
# The filesystem plugin will find all of your existing episodes
filesystem:
regexp: .*(mkv|mp4|avi|mpg|mpeg)$
path:
- '{? roots.media ?}/{? directories.tv_shows ?}'
- '{? roots.media ?}/{? directories.kids_tv ?}'
- '{? roots.media ?}/{? directories.carrie_tv ?}'
recursive: yes
# We use the manual plugin so that this task only runs when explicitly called
manual: yes