-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
171 lines (153 loc) · 4.09 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
variables: variables.yml
web_server:
web_ui: yes
templates:
global:
no_entries_ok: yes
anchors:
_filesystem: &filesystem
retrieve: files
regexp: '.*\.(mp4|mkv)$'
_ntfysh: &ntfysh
topic: '{? ntfysh.topic ?}'
url: '{? ntfysh.url ?}'
username: '{? ntfysh.username ?}'
password: '{? ntfysh.password ?}'
_trakt_list: &trakt_list
username: '{? trakt.username ?}'
account: '{? trakt.username ?}'
strip_dates: yes
notify-download:
notify:
entries:
title: "Downloading"
message: >
{% if series_name is defined %}{{series_name}} {{series_id|pad(2)}}
{% elif tmdb_name is defined %}{{tmdb_name}} [{{tmdb_year}}]
{% else %}{{title|replace('.mkv','')|replace('.mp4','')}}
{% endif %}
via:
- ntfysh:
<<: *ntfysh
notify-sort:
notify:
entries:
title: "Downloaded"
message: >
{% if task|re_search("anime") %}{{title|replace('.mkv','')}}
{% elif task|re_search("tv") %}{{series_name}} {{series_id|pad(2)}}
{% elif task|re_search("movie") %}{{tmdb_name}} [{{tmdb_year}}]
{% else %}{{title|replace('.mkv','')|replace('.mp4','')}}
{% endif %}
via:
- ntfysh:
<<: *ntfysh
tasks:
download-anime:
inputs:
- rss:
url: '{? feeds.anime ?}'
all_entries: no
- rss:
url: '{? feeds.anime2 ?}'
all_entries: no
include: anime.yml
transmission:
host: '{? transmission.host ?}'
content_filename: "{{series_name}} {{series_id|pad(2)}}"
path: '{? transmission.downloads ?}/anime/'
template: notify-download
download-tv:
rss:
url: '{? feeds.tv ?}'
all_entries: no
silent: yes
escape: yes
include: tv.yml
transmission:
host: '{? transmission.host ?}'
path: '{? transmission.downloads ?}/tv/'
template: notify-series
download-movies:
rss:
url: '{? feeds.movies ?}'
all_entries: no
regexp:
reject_excluding:
- '{? regexp.filter ?}'
from: title
tmdb_lookup: yes
list_match:
from:
- movie_list: movies
transmission:
host: '{? transmission.host ?}'
path: '{? transmission.downloads ?}/movies/'
template: notify-download
update-movie-list:
limit:
amount: 10
from:
trakt_list:
<<: *trakt_list
list: '{? trakt.movies ?}'
type: movies
accept_all: yes
tmdb_lookup: yes
list_add:
- movie_list: movies
list_remove:
- trakt_list:
<<: *trakt_list
list: '{? trakt.movies ?}'
type: movies
sort-anime:
filesystem:
<<: *filesystem
path: '{? local.downloads ?}/anime/'
accept_all: yes
require_field: series_name
include: anime.yml
seen: local
all_series:
parse_only: yes
move:
to: "{? local.videos ?}/Anime/{{series_name}}/"
rename: "{{series_name|replace(':',' -')}} {{series_id|pad(2)}}"
template: notify-sort
sort-tv:
filesystem:
<<: *filesystem
recursive: yes
path: '{? local.downloads ?}/tv/'
accept_all: yes
require_field: series_name
include: tv.yml
seen: local
all_series:
parse_only: yes
move:
to: "{? local.videos ?}/TV/{{series_name}}/Season {{series_season}}/"
rename: "{{series_name|replace(':',' -')}} {{series_id|pad(2)}}"
clean_source: 100
template: notify-sort
move-movies:
filesystem:
<<: *filesystem
recursive: yes
path: '{? local.downloads ?}/.movies/'
accept_all: yes
tmdb_lookup: yes
disable: builtins
move:
to: "{? local.videos ?}/Movies/{{tmdb_name}} ({{tmdb_year}})"
rename: "{{tmdb_name|replace(':',' -')}} ({{tmdb_year}})"
clean_source: 100
template: notify-sort
schedules:
- tasks: [ download-anime, download-tv, sort-* ]
schedule:
minute: "*/15"
- tasks: [ update-movie-list, download-movies, move-movies ]
schedule:
minute: 10,25,40,55