-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.yml
1022 lines (978 loc) · 26.6 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
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# My passwords and other private stuff.
variables: secrets.yml
templates:
global:
# private_torrents: no
regexp:
reject:
- \bemporada\b: {from: title}
- \bsubt\b: {from: title}
- (s|d)ub(s|bed|lado)?\b: {from: title}
- \bH?D?TS\b: {from: title}
- \bVHS: {from: title}
- \b3-?D\b: {from: title}
- \btrailer\b: {from: title}
- \bscreener\b: {from: title}
- \b(hd)?cam(rip)?\b: {from: title}
- \bdual\baudio\b: {from: title}
- r3mnants: {from: title}
- \bKOR\b: {from: title}
- italian
- french
- german
- dutch
- hindi
- ipod
content_filter:
require:
- '*.avi'
- '*.mkv'
- '*.mpg'
- '*.mp4'
reject:
- 'password.txt'
- '*.wmv'
# - '*.r01'
require_mainfile: yes
verify_ssl_certificates: no
domain_delay:
bt-chat.com: 1 seconds
ezrss.it: 1 seconds
showrss.info: 1 seconds
torlock.eu: 1 seconds
torrenticity.com: 1 seconds
# Prevent some messages to be logged - see https://github.com/tarzasai/.flexget/tree/master/plugins
log_filter:
content_size:
- too big, rejecting
- too small, rejecting
crossmatch:
- filesystem did not return anything
guessit.guess:
- duplicate properties
- both guesses to be merged
manager:
- Writing crash report to
move:
- left because it exceeds safety value
- does not exists (anymore)
parser_internal:
- appears to be an episode pack
requests.packages.urllib3.connectionpool:
- error(10060
- feed
- torlock
- getaddrinfo failed
- ReadTimeoutError
- after connection broken
series:
- releasing quality restriction
- appears to be an episode pack
task:
- Plugin content_size has requested task to be ran again
- Rerunning the task in case better resolution
- Unhandled error in plugin from_transmission
- Unhandled error in plugin clean_transmission
uoccin_process:
- changes in C
urlrewriter:
- URL rewritten to
# torrentz' guys banned flexget users
headers:
User-Agent: "Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0"
# The sources for series torrents.
tvfeed:
inputs:
- rss:
url: '{? privs.worldofp2p_tv ?}'
silent: yes
- rss:
url: http://showrss.info/user/83874.rss?magnets=true&namespaces=true&name=null&quality=any&re=yes
silent: yes
- rss:
# ### check domain at https://eztvstatus.com/ ###
url: https://eztv.ag/ezrss.xml
other_fields: ['torrent:magnetURI']
link: 'torrent:magnetURI'
silent: yes
- rss:
url: http://thepiratebay.org/rss/top100/205
silent: yes
- rss:
url: http://extratorrent.cc/rss.xml?cid=8
silent: yes
- rss:
url: http://www.torrentfunk.com/tv/rss.xml
silent: yes
- rss:
url: https://extratorrent.cc/rss.xml?type=search&search=white+rabbit+project
silent: yes
- rss:
url: https://extratorrent.cc/rss.xml?type=search&search=gangland+undercover
silent: yes
log_filter:
inputs:
- Error during input plugin rss
rss:
- I have saved the invalid content
- Received content looks
# All the metainfo plugins used by tasks handling series.
tvinfo:
plugin_priority:
# manipulate must fix the titles before metainfo_series.
manipulate: 255
metainfo_series: yes
thetvdb_lookup: yes
uoccin_lookup: '{? uoccin.path ?}'
log_filter:
api_tvdb:
- using cached data
- not get update information from
manipulate:
- tvinfo_title
parser_internal:
- cannot find a(n) `ep` style identifier
- cannot find any series numbering
# Some titles need little corrections to find matches on metainfo sites.
manipulate:
- title:
replace:
regexp: '^\[[^\]]*\][^a-z0-9]*'
format: ''
- title:
replace:
regexp: '^{[^\]]*}[^a-z0-9]*'
format: ''
- title:
replace:
regexp: '^\([^\]]*\)[^a-z0-9]*'
format: ''
- title:
replace:
regexp: '\s?\]\[\s?'
format: '@@'
- title:
replace:
regexp: '\W?@@.*'
format: ''
# Original title backup
- tvinfo_title:
from: title
# Now the modifications
- title:
replace:
regexp: '^Startup\.(2016)?'
format: 'Startup.'
# Global filters for series.
tvfltr:
log_filter:
series:
- identified_by has locked
remember_rej:
- Remembering rejection of
remember_rejected:
- Remembering rejection of
# content_size:
# min: 100
# max: 3000
set:
allow_teasers: no
propers: 12 hours
specials: no
tracking: backfill
# Destination path for series in Transmission (requires "transm" template too).
tvtran:
transmission:
path: C:\Users\giorgio\Videos\Stage\series
# The sources for movies torrents.
mvfeed:
inputs:
- rss: { url: '{? privs.worldofp2p_mv ?}', silent: yes }
- rss: { url: 'https://thepiratebay.org/rss/top100/201', silent: yes }
- rss: { url: 'http://extratorrent.cc/rss.xml?cid=4', silent: yes }
- rss: { url: 'http://www.torlock.com/movies/rss.xml', silent: yes }
log_filter:
inputs:
- Unable to download the RSS for task
- invalid RSS content
- rss did not return
rss:
- I have saved the invalid content
- like error page
- login page
# All the metainfo plugins used by tasks handling movies.
mvinfo:
# plugin_priority:
# I'm not sure of these priorities too, maybe because of https://github.com/Flexget/Flexget/pull/234 (fixed).
# tmdb_lookup: 128
log_filter:
imdb_lookup:
- lookup failed
tmdb_lookup:
- lookup failed
imdb_lookup: yes
# tmdb_lookup: yes
uoccin_lookup: '{? uoccin.path ?}'
# Global filters for movies.
mvfltr:
content_size:
min: 800
max: 15000
quality: 1080p
if:
- not (imdb_id and imdb_name and imdb_year): reject
- uoccin_watched: reject
# Destination path for movies in Transmission (requires transm template too).
mvtran:
transmission:
path: C:\Users\giorgio\Videos\Stage\movies
# Common Transmission settings.
transm:
transmission:
enabled: yes
port: 9091
ratio: -1
magnetization_timeout: 90
log_filter:
transmissionrpc:
- Expecting
- Request
- HTTP data
# Subtitles should always follow their video.
movsrt:
move:
along:
extensions:
- srt
- it.srt
- ita.srt
- en.srt
- eng.srt
copsrt:
copy:
along:
extensions:
- srt
- it.srt
- ita.srt
- en.srt
- eng.srt
delsrt:
delete:
clean_source: 50
along:
extensions:
- srt
- it.srt
- ita.srt
- en.srt
- eng.srt
# No messages about no input/output/whatever.
nosumm:
disable:
- details
# Several tasks must not mess up with the seen table...
noseen:
disable:
- seen
- seen_info_hash
- seen_movies
# ...and/or with the backlog.
nofail:
disable:
- backlog
- remember_rejected
- retry_failed
tasks:
# Synchronize the local uoccin.json file with updates from my Android app.
# the app: https://play.google.com/store/apps/details?id=net.ggelardi.uoccin
# how to use it with Flexget: https://github.com/Flexget/Flexget/pull/506
uoccin_sync:
priority: 1
template:
- nosumm
- nofail
seen: local
filesystem:
path:
- '{? uoccin.path ?}\device.{? uoccin.uuid ?}'
regexp: '.*\.diff$'
accept_all: yes
uoccin_reader:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
# This is the download task for series.
get_series:
priority: 3
interval: 4 hours
template:
- tvinfo
- tvfeed
- tvfltr
- tvtran
- transm
seen: local
sequence:
- configure_series:
settings:
tracking: backfill
quality: 720p hdtv+
from:
uoccin_emit:
path: '{? uoccin.path ?}'
type: series
tags: [ 'hires' ]
- configure_series:
settings:
tracking: backfill
quality: <720p hdtv+
from:
uoccin_emit:
path: '{? uoccin.path ?}'
type: series
tags: [ 'hires', 'netflix', 'no' ]
check_tags: none
- configure_series:
settings:
tracking: backfill
quality: webrip
from:
uoccin_emit:
path: '{? uoccin.path ?}'
type: series
tags: [ 'netflix' ]
if:
- uoccin_watched: reject
- "tvdb_network and tvdb_network=='Amazon'": reject
transmission:
bandwidth_priority: 1
# This one grabs the pilots.
premieres:
priority: 5
interval: 12 hours
template:
- tvfeed
- tvinfo
- tvfltr
- tvtran
- transm
seen: local
require_field:
- tvdb_id
- tvdb_genres
- tvdb_series_name
- tvdb_first_air_date
regexp:
reject:
- animation: {from: tvdb_genres}
- children: {from: tvdb_genres}
- documentary: {from: tvdb_genres}
- family: {from: tvdb_genres}
- food: {from: tvdb_genres}
- game show: {from: tvdb_genres}
- home and garden: {from: tvdb_genres}
- mini-series: {from: tvdb_genres}
- musical: {from: tvdb_genres}
- reality: {from: tvdb_genres}
- romance: {from: tvdb_genres}
- soap: {from: tvdb_genres}
- special interest: {from: tvdb_genres}
- sport: {from: tvdb_genres}
- talk show: {from: tvdb_genres}
- travel: {from: tvdb_genres}
series_premiere:
timeframe: 4 hours
allow_teasers: no
torrent_alive:
min_seeds: 40
if:
- not tvdb_id: reject
- uoccin_tags or uoccin_watchlist or uoccin_watched or uoccin_collected: reject
- tvdb_first_air_date and tvdb_first_air_date < now - timedelta(days=60): reject
- tvdb_genres == ['comedy'] or tvdb_genres == ['Comedy']: reject
# Unknown series are less important.
transmission:
bandwidth_priority: -1
# uoccin_watchlist_add:
# uuid: '{? uoccin.uuid ?}'
# path: '{? uoccin.path ?}'
# tags: [ 'evaluate' ]
# Acquire movie titles from my IMDB list
imdb2uoccin:
priority: 9
interval: 12 hours
template:
- nofail
- mvinfo
seen: local
imdb_watchlist:
user_id: '{? imdb.uid ?}'
list: watchlist
force_language: en-us
if:
- not imdb_id: reject
- uoccin_tags or uoccin_watchlist or uoccin_watched or uoccin_collected: reject
accept_all: yes
uoccin_watchlist_add:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
tags: [ 'imdb' ]
# Copy movies from Uoccin watchlist to Flexget movie queue.
queue_movies:
priority: 10
interval: 4 hours
template:
- nofail
seen: local
uoccin_emit:
path: '{? uoccin.path ?}'
type: movies
accept_all: yes
list_add:
- movie_list: mqueue
# Re-queue unwatchable movies (bad quality, on-screen subs, etc)
requeue_movies:
priority: 11
template:
- noseen
- nosumm
- nofail
- mvinfo
- delsrt
filesystem:
path:
- C:\Users\giorgio\Videos\Incoming\.requeue
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
accept_all: yes
list_add:
- movie_list: mqueue
uoccin_collection_remove:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
uoccin_watchlist_add:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
tags: [ 'requeued' ]
exec:
allow_background: yes
on_exit:
phase: md C:\Users\giorgio\Videos\Incoming\.requeue
# This is the search & download task for movies.
get_movies:
priority: 15
interval: 12 hours
template:
- mvinfo
- mvfeed
- mvfltr
- mvtran
- transm
seen: local
list_match:
from:
- movie_list: mqueue
transmission:
bandwidth_priority: 0
# Sometimes, mostly for old stuff, I have to look for episodes in the old way: this task look for torrents in my
# g-drive folder for series and send them directly to Transmission.
dropbox_series:
priority: 30
template:
- no_global
- noseen
- nosumm
- nofail
- tvinfo
- tvtran
- transm
filesystem:
path:
- C:\Users\giorgio\Google Drive\torrents\series
regexp: '.*\.torrent$'
accept_all: yes
transmission:
bandwidth_priority: 1
exec:
on_output:
for_accepted: del "{{ location }}"
# Same as the prior task, this time for movies.
dropbox_movies:
priority: 31
template:
- no_global
- noseen
- nosumm
- nofail
- mvinfo
- mvtran
- transm
filesystem:
path:
- C:\Users\giorgio\Google Drive\torrents\movies
regexp: '.*\.torrent$'
accept_all: yes
transmission:
bandwidth_priority: 0
exec:
on_output:
for_accepted: del "{{ location }}"
# Move episodes from Transmission destination folder to the incoming folder.
move_series:
priority: 40
template:
- no_global
- noseen
- nosumm
- nofail
- tvinfo
- copsrt
log_filter:
crossmatch:
- did not return anything
manipulate:
- location:
from: bigfile_location
# - title:
# replace:
# regexp: '^[^a-z0-9]*turn:?.(washington(.)?s.spies)?[^a-z0-9]*'
# format: 'Turn '
require_field:
- transmission_progress
- bigfile_location
- tvdb_id
- tvdb_series_name
# We get the entries from Transmission because we need the torrent title, because in some multi-file torrents the
# actual video filename is completely different, up to make the lookup on metainfo sites impossible.
my_from_transmission:
enabled: yes
port: 9091
only_complete: no
# Accept only files in series' Transmission destination path (tasks get_series, premieres, dropox_series).
crossmatch:
from:
- filesystem:
path:
- C:\Users\giorgio\Videos\Stage\series
regexp: '.*\.(mkv|mp4)$'
recursive: yes
fields:
- location
action: accept
exists_series:
path: "C:\\Users\\giorgio\\Videos\\Incoming\\series"
allow_different_qualities: better
if:
- transmission_progress < 100: reject
- not proper and (uoccin_collected or uoccin_watched): reject
# Copy accepted files in the incoming path (filename will be the original title since manipulate in tvinfo might
# have modified it).
copy:
to: "C:\\Users\\giorgio\\Videos\\Incoming\\series\\{{ tvdb_series_name|default(series_name) }}\\"
rename: "{{ tvinfo_title }}{% if not location|pathext in tvinfo_title %}{{ location|pathext }}{% endif %}"
# Add to Uoccin episodes collection.
uoccin_collection_add:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
# Move movies from Transmission destination folder to the incoming folder.
move_movies:
priority: 41
template:
- no_global
- noseen
- nosumm
- nofail
- mvinfo
- copsrt
log_filter:
crossmatch:
- did not return anything
manipulate:
- location:
from: bigfile_location
require_field:
- transmission_progress
- bigfile_location
# We get the entries from Transmission because we need the torrent title, because in some multi-file torrents the
# actual video filename is completely different, up to make the lookup on metainfo sites impossible.
my_from_transmission:
enabled: yes
port: 9091
only_complete: no
# Accept only files in movies' Transmission destination path (tasks get_movies, dropox_movies).
crossmatch:
from:
- filesystem:
path:
- C:\Users\giorgio\Videos\Stage\movies
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
fields:
- location
action: accept
if:
- transmission_progress < 100: reject
- uoccin_watched: reject
# Copy accepted files in the incoming path (filename will be the original torrent name, see move_series).
copy:
to: "C:\\Users\\giorgio\\Videos\\Incoming\\movies\\{{ imdb_name|replace('/', '_')|replace(':', ' -') }} ({{ imdb_year }})\\"
rename: "{{ title }}{% if not location|pathext in title %}{{ location|pathext }}{% endif %}"
# Update Uoccin movies collection/watchlist.
uoccin_collection_add:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
uoccin_watchlist_remove:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
#
list_remove:
- movie_list: mqueue
# Clean Transmission of completed torrents.
cleantran:
priority: 45
template:
- noseen
- nosumm
- nofail
log_filter:
transmissionrpc:
- Expecting
- Request
- HTTP data
task:
- you should add (at least) one!
clean_transmission:
enabled: yes
port: 9091
finished_for: 48 hours
delete_files: yes
# Move watched episodes out of the incoming folder.
purge_series:
priority: 50
template:
- no_global
- noseen
- nosumm
- tvinfo
- delsrt
log_filter:
delete:
- has been deleted as well
- left because it exceeds safety value
- was less than clean_source safe value
filesystem:
path:
- C:\Users\giorgio\Videos\Incoming\series
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
if:
- uoccin_tags and 'no' in uoccin_tags: accept
- uoccin_watched and uoccin_rating <= 4: accept
uoccin_collection_remove:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
# Eventually restore the incoming series folder (otherwise Flexget will not run next time).
exec:
allow_background: yes
on_exit:
phase: md C:\Users\giorgio\Videos\Incoming\series
save_series:
priority: 51
template:
- no_global
- noseen
- nosumm
- tvinfo
- movsrt
filesystem:
path:
- C:\Users\giorgio\Videos\Incoming\series
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
if:
- uoccin_watched and uoccin_rating > 4: accept
move:
to: "C:\\Users\\giorgio\\Videos\\Series\\{{ tvdb_series_name|default(series_name) }}\\Season {{ series_season }}\\"
clean_source: 10
uoccin_collection_remove:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
# Eventually restore the incoming series folder (otherwise Flexget will not run next time).
exec:
allow_background: yes
on_exit:
phase: md C:\Users\giorgio\Videos\Incoming\series
# Delete watched movies.
purge_movies:
priority: 52
template:
- no_global
- noseen
- nosumm
- mvinfo
- delsrt
log_filter:
delete:
- has been deleted as well
- left because it exceeds safety value
- was less than clean_source safe value
filesystem:
path:
- C:\Users\giorgio\Videos\Incoming\movies
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
if:
- uoccin_watched and uoccin_rating <= 4: accept
uoccin_collection_remove:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
# Eventually restore the incoming movies folder (otherwise Flexget will not run next time).
exec:
allow_background: yes
on_exit:
phase: md C:\Users\giorgio\Videos\Incoming\movies
# Download italian and english subtitles for episodes.
subs_series:
priority: 60
template:
- noseen
- nosumm
- nofail
- tvinfo
plugin_priority:
subliminal: -200
mysubliminal: -200
uoccin_subtitles: -201
log_filter:
entry:
- not found
- subtitles for now
- found for a second-choice
fix_subtitles:
- fixed
subtitles:
- Name computed for
- found for a second-choice
filesystem:
path:
- C:\Users\giorgio\Videos\Incoming\series
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
accept_all: yes
mysubliminal:
single: no
languages:
- ita
alternatives:
- eng
# Updates the Uoccin collection with subs data.
uoccin_subtitles:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
# fix wrong accented characters in italian subs - see https://github.com/tarzasai/.flexget/tree/master/plugins
# fix_subtitles: yes
# Download italian and english subtitles for movies.
subs_movies:
priority: 61
# interval: 2 hours
template:
- noseen
- nosumm
- nofail
- mvinfo
plugin_priority:
subliminal: -200
mysubliminal: -200
uoccin_subtitles: -201
log_filter:
entry:
- not found
- subtitles for now
- found for a second-choice
fix_subtitles:
- fixed
subtitles:
- Name computed for
- found for a second-choice
filesystem:
path:
- C:\Users\giorgio\Videos\Incoming\movies
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
accept_all: yes
mysubliminal:
single: no
languages:
- ita
alternatives:
- eng
# Updates the Uoccin collection with subs data.
uoccin_subtitles:
uuid: '{? uoccin.uuid ?}'
path: '{? uoccin.path ?}'
# fix wrong accented characters in italian subs - see https://github.com/tarzasai/.flexget/tree/master/plugins
# fix_subtitles: yes
######################################################################################################################
# CLEANUPS (DANGER!!!)
######################################################################################################################
clean_series:
manual: yes
template:
- no_global
- noseen
- nofail
series_list: yes
crossmatch:
from:
- uoccin_emit:
path: '{? uoccin.path ?}'
type: series
fields:
- title
action: reject
accept_all: yes
forget_series: yes
clean_episodes:
manual: yes
template:
- no_global
- noseen
- nofail
- tvinfo
episodes_list: yes
# episodes_list: 'dreadful'
if:
- series_season == 1 and series_episode == 1: reject
- not tvdb_id: accept
- not tvdb_ep_air_date or tvdb_ep_air_date > now - timedelta(days=1): accept
forget_episodes: yes
######################################################################################################################
# TESTS
######################################################################################################################
ut1:
manual: yes
template:
- no_global
- noseen
- nofail
imdb_lookup: yes
uoccin_lookup: '{? uoccin.path ?}'
mock:
# - { title: 'fury' }
- { title: 'penny dreadful s01e03' }
# - { title: 'life of pi 1080p whatever' }
ut2:
manual: yes
template:
- no_global
- noseen
- nofail
imdb_lookup: yes
# tmdb_lookup: yes
mock:
- { title: 'The.Jungle.Book.2016.MULTi.1080p.BluRay.x264-LOST' }
# - { title: '' }
# - { title: '' }
# - { title: '' }
ut3:
manual: yes
template:
- no_global
- noseen
- nofail
- tvinfo
# metainfo_series: yes
# thetvdb_lookup: yes
mock:
- { title: 'SIX.Part.5.HDTV.x264-FLEET[rarbg]' }
accept_all: yes
# uoccin_collection_remove:
# uuid: '{? uoccin.uuid ?}'
# path: '{? uoccin.path ?}'
# uoccin_watchlist_add:
# uuid: '{? uoccin.uuid ?}'
# path: '{? uoccin.path ?}'
# tags: [ 'evaluate' ]
ut4:
manual: yes
template:
- no_global
- noseen
- nofail
- mvinfo
mock:
- { title: 'Sisters.2015.1080p.BluRay.H264.AAC-RARBG' }
quality: 1080p
require_field:
- imdb_id
- imdb_name
- imdb_year
- imdb_url
- imdb_languages
- imdb_genres
- imdb_score
- imdb_votes
regexp:
reject:
- animation: {from: imdb_genres}
- documentary: {from: imdb_genres}
- family: {from: imdb_genres}
- horror: {from: imdb_genres}
- music: {from: imdb_genres}
- musical: {from: imdb_genres}
- romance: {from: imdb_genres}
- sport: {from: imdb_genres}
if:
- uoccin_watchlist or uoccin_watched or uoccin_collected: reject
- not imdb_languages or not 'english' in imdb_languages: reject
- not imdb_votes or imdb_votes < 10000: reject
- not imdb_score or imdb_score < 8.5: reject
- imdb_genres == ['comedy']: reject
- imdb_year < now.year - 10: reject
accept_all: yes
ut5:
manual: yes
template:
- no_global
- noseen
- nofail
filesystem:
path:
- C:\Users\giorgio\Videos\Incoming\series
# - C:\Users\giorgio\Videos\Incoming\series\Aquarius (2015)
# - C:\Users\giorgio\Videos\Incoming\series\From Dusk Till Dawn The Series
# - C:\Users\giorgio\Videos\Incoming\series\test
regexp: '.*\.(avi|mkv|mp4)$'
recursive: yes
accept_all: yes
mysubliminal:
single: no
languages:
- ita
# - eng
alternatives:
- eng
ut6:
manual: yes
template: