-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
executable file
·549 lines (521 loc) · 13 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
variables: secrets.yml
schedules:
- tasks: ['database_*']
schedule:
hour: 0,3,6,9,12,15,18,21
- tasks: ['*_rss', 'descarga_mags*']
schedule:
minute: 0,30
- tasks: ['*_discover','*_manual']
schedule:
minute: 5
- tasks: ['mover_*','ficheros_descomprimir']
schedule:
minute: 15,45
web_server:
bind: 192.168.0.12
port: 9092
web_ui: yes
templates:
global:
pathscrub: linux
log_filter:
kodi_library:
- entries were
details:
- produce any entries
urlrewriter:
- URL rewritten to
transmission:
- torrent added
move:
- Creating destination directory
task:
- better resolution
- task to be ran again
- any input plugins
- any output plugins
- any filter plugins
discover:
- did not return anything
web_server_daemon:
- Initiating
- Registering
- Running
#Datos de Transmission
transmission-anchors:
_transmission-settings: &transmission-settings
host: 192.168.0.12
port: 9091
username: "{? transmission.user ?}"
password: "{? transmission.pass ?}"
#Avisos de Telegram
avisos_tarea:
notify:
entries:
message: |+
{%if task in ['descarga_series_discover','descarga_series_manual','descarga_series_rss']%}*Nueva serie en descarga*
{% if tvdb_series_name is defined -%}
*{{tvdb_series_name}}* - {{tvdb_ep_id}} - {{quality|d('')}}
*{{tvdb_ep_name|d('')}}*
*Score:* {{tvdb_ep_rating}}/10
[Image]({{tvdb_ep_image|replace("_", "%5F")}})
{% else -%}
{{title}}
{%- endif -%}
{%elif task in ['descarga_peliculas_discover','descarga_peliculas_manual']%}*Nueva pelicula en descarga*
{% if imdb_name is defined -%}
*{{imdb_name}}* - ({{imdb_year}})
{{quality|d('')}}
*Score:* {{imdb_score}}/10 - {{imdb_votes}} votes
[Image]({{tmdb_posters[0]|replace("_", "%5F")}})
{% else -%}
{{title}}
{%- endif -%}
{%elif task in ['descarga_magsenglish','descarga_magsspanish']%}*Nueva revista en descarga*
*{{title}}*
[Image]({{description|replace("_", "%5F")}})
{%elif task in ['descarga_macapps_rss']%}*Nueva aplicacion para MAC en descarga*
{{title}}
{%else%}*Proceso en marcha:*
{{task}} - {{title}}
{%endif%}
via:
- telegram:
bot_token: "{? telegram.token ?}"
parse_mode: markdown
recipients:
- username: "{? telegram.user ?}"
avisos_error:
notify:
abort:
via:
- telegram:
bot_token: "{? telegram.token ?}"
parse_mode: markdown
recipients:
- username: "{? telegram.user ?}"
#Configuracion de calidad de series (720p en Newpct)
config_series:
series:
settings:
all:
ep_regexp:
- Cap.(\d+)(\d\d)
quality: hdtv 720p
include: series.yml
exists_series:
- "{? folder.series ?}"
regexp:
reject:
- V.O.:
from: title
set:
path: "{? folder.downseries ?}"
#Configuracion de calidad de peliculas (No screeners or cams, 720p+)
config_peliculas:
exists_movie:
- "{? folder.movies ?}"
assume_quality:
h264: 720p
microhd: 720p
remux: 720p
bluray: 1080p
quality: remux+ 720p+
regexp:
reject:
- V.O.
- 'sub[s][\s\._]'
- '[Ll]atino'
- '[Ss]creener'
- '[Ss]creener':
from: url
- Screeener
- Screeener:
from: url
- 3D
from: title
set:
path: "{? folder.downmovies ?}"
#Servidores de descarga
server_series:
transmission:
<<: *transmission-settings
addpaused: no
include_subs: no
rename_like_files: yes
skip_files:
- '*.nfo'
- '*.sfv'
- '[sS]ample*'
- '*.url'
- '*.html'
- '*.htm'
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 %}"
path: "{? folder.downseries ?}"
server_peliculas:
transmission:
<<: *transmission-settings
addpaused: no
include_subs: no
rename_like_files: yes
skip_files:
- '*.nfo'
- '*.sfv'
- '[sS]ample*'
- '*.url'
- '*.html'
- '*.htm'
content_filename: "{{movie_name|default(imdb_name)|pathscrub}} ({{movie_year|default(imdb_year)}})"
path: "{? folder.downmovies ?}"
server_macapps:
transmission:
<<: *transmission-settings
addpaused: no
path: "{? folder.downmacapps ?}"
#Recolectores de metadata
metadata_series:
thetvdb_lookup: yes
metainfo_series: yes
metadata_peliculas:
imdb_lookup: yes
metainfo_movie: yes
tasks:
########## SERIES ##########
#Descarga episodios nuevos del RSS de NewPct1
descarga_series_rss:
priority: 5
template:
- server_series
- avisos_tarea
- avisos_error
- config_series
- metadata_series
rss:
url: http://www.newpct.com/feed/
link: link
#Descarga episodios antiguos de series añadidas a la lista
descarga_series_discover:
priority: 8
template:
- server_series
- avisos_tarea
- avisos_error
- config_series
- metadata_series
discover:
release_estimations: strict
interval: 15 minutes
what:
- next_series_episodes:
from_start: yes
from:
- newpct: yes
#Descarga episodios de torrents en carpeta series_torrents
descarga_series_manual:
priority: 4
template:
- metadata_series
- server_series
- avisos_tarea
- avisos_error
disable:
- seen
- seen_info_hash
- retry_failed
- details
filesystem:
path: "{? folder.downseries ?}"
mask: '*.torrent'
accept_all: yes
exec:
on_output:
for_accepted: rm -f "{{location}}"
#Llenar base de datos de series con archivos en biblioteca
database_series_check:
priority: 1
template:
- metadata_series
- avisos_tarea
- avisos_error
seen: local
filesystem:
path: "{? folder.series ?}"
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
configure_series:
from:
filesystem:
path: "{? folder.series ?}"
retrieve: dirs
regexp: '^[^\@\.].*$'
settings:
tracking: no
########## PELICULAS ##########
#Descarga peliculas añadidas a la lista
descarga_peliculas_discover:
priority: 37
template:
- server_peliculas
- avisos_tarea
- avisos_error
- config_peliculas
- metadata_peliculas
disable:
- seen
- seen_info_hash
- retry_failed
discover:
release_estimations:
optimistic: 7 days
interval: 1 hours
what:
- movie_list: movies
from:
- newpct: yes
list_match:
from:
- movie_list: movies
#Descarga peliculas de torrents alojados en movies_torrents
descarga_peliculas_manual:
priority: 34
template:
- metadata_peliculas
- server_peliculas
- avisos_tarea
- avisos_error
disable:
- seen
- seen_info_hash
- retry_failed
filesystem:
path: "{? folder.downmovies ?}"
mask: '*.torrent'
accept_all: yes
exec:
on_output:
for_accepted: rm -f "{{location}}"
list_remove:
- movie_list: movies
#Llenar lista interna de peliculas con lista de Trakt
database_peliculas_llenar:
priority: 32
template:
- avisos_error
imdb_watchlist:
user_id: "{? imdb.username ?}"
list: "{? imdb.movies ?}"
force_language: es-es
accept_all: yes
manipulate:
- title:
extract: (.*)\s\(.*\).*
list_add:
- movie_list: movies
########## REVISTAS ##########
descarga_magsenglish:
include: magsenglish.yml
template:
- avisos_tarea
- avisos_error
rss:
url: http://twitrss.me/twitter_user_to_rss/?user=magazinelib
all_entries: no
disable:
- retry_failed
manipulate:
- description:
extract: '<img\ssrc\=\"(.*?)\"'
- title:
extract: 'New magazine in PDF added\s\-\s*(.*)\s*Download:'
- title:
replace:
regexp: '—'
format: '-'
download:
path: "{? folder.downmags ?}"
overwrite: yes
fail_html: no
filename: '{{title|pathscrub}}.pdf'
descarga_magsspanish:
include: magsspanish.yml
template:
- avisos_tarea
- avisos_error
disable:
- retry_failed
rss:
url: http://feed43.com/desmixmags.xml
all_entries: yes
manipulate:
- description:
extract: '(.*?)\s*<p>.*<\/p>\s*'
pyload:
api: http://localhost:8190/api
username: "{? pyload.user ?}"
password: "{? pyload.pass ?}"
package: 'magazines'
queue: yes
########## MACAPPS ##########
descarga_macapps_rss:
priority: 71
include: macapps.yml
template:
- server_macapps
- avisos_tarea
- avisos_error
disable:
- retry_failed
rss:
url: http://mac-torrents.com/feed/
link: link
########## LIBRERIA ##########
#Mover series en carpeta de series
mover_series:
priority: 41
template:
- metadata_series
- avisos_error
disable:
- seen
- seen_info_hash
- retry_failed
parsing:
series: guessit
filesystem:
path: "{? folder.downseries ?}"
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
accept_all: yes
move:
to: "{? folder.series ?}{{tvdb_series_name|default(series_name)|pathscrub}}/Season {{'%02d'|format(series_season)}}/"
rename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{series_id}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}"
kodi_library:
action: scan
category: video
url: http://192.168.0.20
port: 8080
#Mover peliculas en carpeta de movies
mover_peliculas:
priority: 43
template:
- metadata_peliculas
- avisos_error
disable:
- seen
- seen_info_hash
- retry_failed
parsing:
movie: guessit
filesystem:
path: "{? folder.downmovies ?}"
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
accept_all: yes
regexp:
reject:
- \btrailer\b
- \bsample\b
move:
to: "{? folder.movies ?}{{movie_name|default(imdb_name)|pathscrub}} ({{imdb_year|default(movie_year)}})/"
rename: "{{movie_name|default(imdb_name)|pathscrub}} ({{movie_year|default(imdb_year)}})"
kodi_library:
action: scan
category: video
url: http://192.168.0.20
port: 8080
#Mover series en carpeta de series
mover_mags:
priority: 45
disable:
- seen
- seen_info_hash
- retry_failed
template:
- avisos_error
filesystem:
path: "{? folder.downmags ?}"
recursive: yes
retrieve: files
regexp: '.*\.(pdf)$'
accept_all: yes
manipulate:
- filename:
replace:
regexp: '__'
format: ' - '
- filename:
replace:
regexp: '_'
format: ' '
- title:
from: filename
- title:
extract: (.*?)\s[-–—]\s.*\.pdf$
move:
to: "{? folder.mags ?}{{title|pathscrub}}"
#Mover revistas a carpeta de revistas antiguas
mover_oldmags:
priority: 47
disable:
- seen
- seen_info_hash
- retry_failed
template:
- avisos_error
filesystem:
path: "{? folder.mags ?}"
recursive: yes
retrieve: files
regexp: '.*\.(pdf)$'
manipulate:
- title:
from: filename
- title:
extract: (.*?)\s[-–]\s.*\.pdf$
age:
field: created
action: accept
age: 8 weeks
move:
to: "{? folder.oldmags ?}{{title|pathscrub}}"
#Limpiar Transmission
database_server_limpiar:
priority: 51
disable: details
log_filter:
task:
- any plugins
clean_transmission:
<<: *transmission-settings
finished_for: 30 minutes
#Descomprimir ficheros en carpetas de descarga
ficheros_descomprimir:
priority: 103
accept_all: yes
parsing:
movie: guessit
series: guessit
filesystem:
path:
- "{? folder.downmovies ?}"
- "{? folder.downmags ?}"
- "{? folder.downseries ?}"
recursive: yes
retrieve: files
regexp: '.*\.(rar|r0+[01](/01)|zip)$'
decompress:
keep_dirs: yes
delete_archive: yes
delete:
along:
extensions:
- sub
- srt
- url
- txt
- webloc
#EOF