-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
hdonly.yml
333 lines (325 loc) · 9.94 KB
/
hdonly.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
---
id: hdonly
name: HD-Only
description: "HD-Only (HD-O) is a FRENCH Private Torrent Tracker for HD MOVIES / TV"
language: fr-fr
type: private
encoding: UTF-8
links:
- https://hd-only.org/
caps:
categorymappings:
- {id: 1, cat: Movies, desc: "Film"}
- {id: 3, cat: TV/Anime, desc: "Dessin animé"}
- {id: 4, cat: Movies, desc: "Concert"}
- {id: 5, cat: TV, desc: "Série"}
- {id: 6, cat: TV/Anime, desc: "Série anim"}
- {id: 7, cat: Movies/Other, desc: "Film d'animation"}
- {id: 7, cat: Audio/Video, desc: "Concert"}
- {id: 11, cat: TV/Documentary, desc: "Documentaire"}
- {id: 13, cat: Movies/Other, desc: "Court-métrage"}
- {id: 14, cat: Movies/Other, desc: "Clip"}
- {id: 15, cat: Movies/Other, desc: "Démonstration"}
- {id: 16, cat: Movies/Other, desc: "Bonus de BD"}
- {id: 21, cat: Other, desc: "Autre"}
modes:
search: [q]
tv-search: [q]
movie-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: multilang
type: checkbox
label: Replace MULTI by another language in release name
default: false
- name: multilanguage
type: select
label: Replace MULTI by this language
default: FRENCH
options:
FRENCH: "FRENCH"
MULTI.FRENCH: "MULTI.FRENCH"
ENGLISH: "ENGLISH"
MULTI.ENGLISH: "MULTI.ENGLISH"
VOSTFR: "VOSTFR"
MULTI.VOSTFR: "MULTI.VOSTFR"
- name: vostfr
type: checkbox
label: Replace VOSTFR with ENGLISH
default: false
- name: sort
type: select
label: Sort requested from site
default: "time"
options:
"time": "created"
"seeders": "seeders"
"size": "size"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
- name: info_radarr
type: info
label: About Radarr
default: The HD-Only web site cannot find movies if you use the release year in a title search. When you define your Radarr v3 Indexer remember to tick the <i>Remove year from search string</i> checkbox.
login:
path: login.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
keeplogged: 1
error:
- selector: form#loginform > span.warning
test:
path: torrents.php
selector: a[href^="logout.php?auth="]
ratio:
path: torrents.php
selector: li#stats_ratio > span
search:
# https://hd-only.org/torrents.php?groupname=blood&freetorrent=1&order_by=time&order_way=desc&action=advanced&searchsubmit=1
path: torrents.php
inputs:
# does not support categories, uses releasetype for single filter so we canot do multi releasetype filtering either.
# $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
groupname: "{{ .Keywords }}"
order_by: "{{ .Config.sort }}"
order_way: "{{ .Config.type }}"
action: advanced
searchsubmit: 1
# 1 freeleech, 2 neutral, 3 both, 0 normal
freetorrent: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
# site does not support imdbid search or display imdb links in results
rows:
selector: table#torrent_table > tbody > tr.torrent
fields:
download:
selector: a[href^="torrents.php?action=download&"]
attribute: href
title_phase1:
selector: div.group_info
remove: span:nth-child(1), div.tags
filters:
- name: replace
args: ["\n", ""]
- name: re_replace
args: ["^(.+) (.+)", "$2-$1"]
- name: replace
args: [" ", " "]
- name: replace
args: ["Blu-Ray Original", "Complete.BluRay"]
- name: replace
args: ["Blu-Ray Remux", "Remux"]
- name: replace
args: ["Blu-Ray Rip", "BluRay.Rip"]
- name: replace
args: ["mHD", "mHD.BluRay.Rip"]
- name: replace
args: ["/ DC", "/ Directors.Cut"]
- name: replace
args: ["/ VL", "/ Extended"]
- name: replace
args: ["/ RM", "/ Remastered"]
- name: replace
args: ["/ UC", "/ Uncut"]
- name: replace
args: ["/ ES", "/ Special.Edition"]
- name: replace
args: [" / Cust_sub", ""]
- name: replace
args: [" / Cust", ""]
- name: replace
args: ["/ UN", "/ Unrated"]
- name: replace
args: [" / Crit", ""]
- name: replace
args: [" / WAC", ""]
- name: replace
args: [" / MoC", ""]
- name: replace
args: [" / BFI", ""]
- name: replace
args: [" / MUET", ""]
- name: replace
args: ["/ Exc NF", "/ NF"]
- name: replace
args: ["/ Exc AMZ", "/ AMZ"]
- name: replace
args: ["/ Exc YOU", "/ YT"]
- name: replace
args: [" / Freeleech!", ""]
- name: replace
args: [" / Complété!", ""]
- name: replace
args: [" / ", "."]
- name: trim
- name: replace
args: [".VFF.VFQ.stFR.MULTI", ".MULTI.VFF.VFQ"]
- name: replace
args: [".VFF.VFQ.VO.stFR.MULTI", ".MULTI.VFF.VFQ"]
- name: replace
args: [".VFF.VFQ.VO.stFR", ".MULTI.VFF.VFQ"]
- name: replace
args: [".VFQ.VO.stFR", ".MULTI.VFQ"]
- name: replace
args: [".VO.VFI.stFR", ".MULTI"]
- name: replace
args: [".VO.VF?.stFR", ".MULTI"]
- name: replace
args: [".VFF.VO.stFR", ".MULTI.VFF"]
- name: replace
args: [".VOF.stFR", ".FRENCH"]
- name: replace
args: [".VFQ.stFR", ".FRENCH"]
- name: replace
args: [".VFF.stFR.MULTI", ".MULTI.VFF"]
- name: replace
args: [".VFF.stFR", ".FRENCH"]
- name: replace
args: [".VFI.MULTI", ".MULTI"]
- name: replace
args: [".VO.stFR", ".VOSTFR"]
- name: replace
args: [".VFQ.VO", ".MULTI.VFQ"]
- name: replace
args: [".VFF.VO", ".MULTI.VFF"]
- name: replace
args: [".VO.VF?.stFR", ".MULTI"]
- name: replace
args: [".VFI.stFR", ".FRENCH"]
- name: replace
args: [".VOF.MULTI", ".MULTI.FRENCH"]
- name: replace
args: [".VOF", ".FRENCH"]
- name: replace
args: [".VFQ.MULTI", ".MULTI.VFQ"]
- name: replace
args: ["[Film]", ""]
- name: replace
args: ["[Dessin animé]", ""]
- name: replace
args: ["[Film d'animation]", ""]
- name: replace
args: ["[Concert]", ""]
- name: replace
args: ["[Documentaire]", ""]
- name: replace
args: ["[Court-métrage]", ""]
- name: replace
args: ["[Clip]", ""]
- name: replace
args: ["[Démonstration]", ""]
- name: replace
args: ["[Bonus de BD]", ""]
- name: replace
args: ["[Autre]", ""]
- name: replace
args: ["[Série Animée]", ""]
- name: replace
args: ["[Série]", ""]
- name: re_replace
args: ["\\[(\\d{4})\\]", "$1"]
title_multilang:
text: "{{ .Result.title_phase1 }}"
filters:
- name: re_replace
args: ["(?i)([\\s|\\.|-]*multi[\\s|\\.|-]*)", ".{{ .Config.multilanguage }}."]
title_phase2:
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
title_vostfr:
text: "{{ .Result.title_phase2 }}"
filters:
- name: re_replace
args: ["(?i)([\\s|\\.|-]*vostfr[\\s|\\.|-]*)", ".ENGLISH."]
- name: re_replace
args: ["(?i)([\\s|\\.|-]*subfrench[\\s|\\.|-]*)", ".ENGLISH."]
title:
text: "{{ if .Config.vostfr }}{{ .Result.title_vostfr }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
description:
selector: div.group_info
banner:
selector: div.group_image img
attribute: src
optional: true
details:
selector: a[href^="torrents.php?id="]
attribute: href
comments:
selector: a[href^="torrents.php?id="]
attribute: href
files:
selector: td:nth-child(3)
date:
selector: td:nth-child(4)
filters:
- name: replace
args: ["heures", "hours"]
- name: replace
args: ["heure", "hour"]
- name: replace
args: ["jours", "days"]
- name: replace
args: ["jour", "day"]
- name: replace
args: ["semaines", "weeks"]
- name: replace
args: ["semaine", "week"]
- name: replace
args: ["mois", "months"]
- name: replace
args: ["ans", "years"]
- name: replace
args: ["an", "year"]
- name: append
args: " ago"
size:
selector: td:nth-child(5)
grabs:
selector: td:nth-child(6)
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
downloadvolumefactor:
case:
"div.group_info:contains(\"/ Freeleech!\")": 0
"*": 1
uploadvolumefactor:
text: 1
category:
selector: div.group_info
remove: span, div, a
case:
":contains(\"[Film]\")": 1
":contains(\"[Dessin animé]\")": 3
":contains(\"[Série]\")": 5
":contains(\"[Série Animée]\")": 6
":contains(\"[Film d'animation]\")": 7
":contains(\"[Concert]\")": 9
":contains(\"[Documentaire]\")": 11
":contains(\"[Court-métrage]\")": 13
":contains(\"[Clip]\")": 14
":contains(\"[Démonstration]\")": 15
":contains(\"[Bonus de BD]\")": 16
":contains(\"[Autre]\")": 21
"*": 5
minimumratio:
text: 1.0
minimumseedtime:
# 3 days (as seconds = 3 x 24 x 60 x 60)
text: 259200
# Gazelle