Skip to content

Commit c4a8c41

Browse files
yggtorrent: tempfix (#333)
1 parent e9b1c6d commit c4a8c41

File tree

4 files changed

+320
-580
lines changed

4 files changed

+320
-580
lines changed

definitions/v7/yggcookie.yml

Lines changed: 80 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ legacylinks:
3333
- https://www6.yggtorrent.lol/
3434

3535
caps:
36-
# dont forget to update the search fields category case block
3736
categorymappings:
3837
- {id: 2145, cat: TV, desc: "Film/Vidéo"}
3938
- {id: 2178, cat: Movies/Other, desc: "Film/Vidéo : Animation"} # changed to movies, see #3553
@@ -121,6 +120,84 @@ settings:
121120
type: info
122121
label: How to get the User-Agent
123122
default: "<ol><li>From the same place you fetched the cookie,</li><li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</li></ol>"
123+
- name: category
124+
type: select
125+
label: Category
126+
default: all
127+
options:
128+
all: "Tous"
129+
2145: "Film/Vidéo"
130+
2139: "Audio"
131+
2144: "Application"
132+
2142: "Jeu vidéo"
133+
2140: "eBook"
134+
2300: "Nulled"
135+
2200: "Imprimante 3D"
136+
2141: "Emulation"
137+
2143: "GPS"
138+
2188: "XXX"
139+
- name: subcategory
140+
type: select
141+
label: Sub-category
142+
default: all
143+
options:
144+
all: "Tous"
145+
2178: "Film/Vidéo : Animation"
146+
2179: "Film/Vidéo : Animation Série"
147+
2180: "Film/Vidéo : Concert"
148+
2181: "Film/Vidéo : Documentaire"
149+
2182: "Film/Vidéo : Emission TV"
150+
2183: "Film/Vidéo : Film"
151+
2184: "Film/Vidéo : Série TV"
152+
2185: "Film/Vidéo : Spectacle"
153+
2186: "Film/Vidéo : Sport"
154+
2187: "Film/Vidéo : Vidéo-clips"
155+
2147: "Audio : Karaoké"
156+
2148: "Audio : Musique"
157+
2150: "Audio : Podcast Radio"
158+
2149: "Audio : Samples"
159+
2177: "Application : Autre"
160+
2176: "Application : Formation"
161+
2171: "Application : Linux"
162+
2172: "Application : MacOS"
163+
2174: "Application : Smartphone"
164+
2175: "Application : Tablette"
165+
2173: "Application : Windows"
166+
2167: "Jeu vidéo : Autre"
167+
2159: "Jeu vidéo : Linux"
168+
2160: "Jeu vidéo : MacOS"
169+
2162: "Jeu vidéo : Microsoft"
170+
2163: "Jeu vidéo : Nintendo"
171+
2165: "Jeu vidéo : Smartphone"
172+
2164: "Jeu vidéo : Sony"
173+
2166: "Jeu vidéo : Tablette"
174+
2161: "Jeu vidéo : Windows"
175+
2151: "eBook : Audio"
176+
2152: "eBook : Bds"
177+
2153: "eBook : Comics"
178+
2154: "eBook : Livres"
179+
2155: "eBook : Mangas"
180+
2156: "eBook : Presse"
181+
2301: "Nulled : Wordpress"
182+
2302: "Nulled : Scripts PHP & CMS"
183+
2303: "Nulled : Mobile"
184+
2304: "Nulled : Divers"
185+
2201: "Imprimante 3D : Objets"
186+
2202: "Imprimante 3D : Personnages"
187+
2157: "Emulation : Emulateurs"
188+
2158: "Emulation : Roms"
189+
2168: "GPS : Applications"
190+
2169: "GPS : Cartes"
191+
2170: "GPS : Divers"
192+
2401: "XXX : Ebooks"
193+
2189: "XXX : Films"
194+
2190: "XXX : Hentai"
195+
2191: "XXX : Images"
196+
2402: "XXX : Jeux"
197+
- name: info_category
198+
type: info
199+
label: Category and Sub-category
200+
default: Only select a <i>Category</i> <b>OR</b> a <i>Sub-category</i>, leaving the other as <i>Tous</i>.
124201
- name: multilang
125202
type: checkbox
126203
label: Replace MULTi by another language in release name
@@ -168,10 +245,6 @@ settings:
168245
options:
169246
desc: desc
170247
asc: asc
171-
- name: categories
172-
type: info
173-
label: Categories
174-
default: To avoid unnecessary additional requests, it's recommended to only use indexer-specific categories (>=100000) when configuring this indexer in Sonarr, Radarr, and Lidarr, or when manually searching in TV, Movies, and Audio categories.
175248
- name: flaresolverr
176249
type: info
177250
label: FlareSolverr
@@ -187,154 +260,16 @@ login:
187260

188261
search:
189262
paths:
190-
# Tous
191-
- path: engine/search
192-
categories: ["!", 2145, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, 2186, 2187, 2139, 2147, 2148, 2150, 2149, 2144, 2177, 2176, 2171, 2172, 2174, 2175, 2173, 2142, 2167, 2159, 2160, 2162, 2163, 2165, 2164, 2166, 2161, 2140, 2151, 2152, 2153, 2154, 2155, 2156, 2300, 2301, 2302, 2303, 2304, 2200, 2201, 2202, 2141, 2157, 2158, 2143, 2168, 2169, 2170, 2188, 2401, 2189, 2190, 2191, 2402]
193-
inputs:
194-
name: "{{ .Keywords }}"
195-
category: all
196-
followredirect: true
197-
# Tous p2
198-
- path: engine/search
199-
categories: ["!", 2145, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, 2186, 2187, 2139, 2147, 2148, 2150, 2149, 2144, 2177, 2176, 2171, 2172, 2174, 2175, 2173, 2142, 2167, 2159, 2160, 2162, 2163, 2165, 2164, 2166, 2161, 2140, 2151, 2152, 2153, 2154, 2155, 2156, 2300, 2301, 2302, 2303, 2304, 2200, 2201, 2202, 2141, 2157, 2158, 2143, 2168, 2169, 2170, 2188, 2401, 2189, 2190, 2191, 2402]
200-
inputs:
201-
$raw: "{{ if .Keywords }}name={{ re_replace .Keywords \"(?i)S0?(\\d{1,2})\" \"Saison $1\" }}{{ else }}&page=50{{ end }}"
202-
category: all
203-
followredirect: true
204-
# Film/Vidéo p1
205-
- path: engine/search
206-
categories: [2145, 2180, 2181, 2182, 2184, 2185, 2186, 2187]
207-
inputs:
208-
name: "{{ .Keywords }}"
209-
category: 2145
210-
followredirect: true
211-
# Film/Vidéo (TV which use Saison) p2
212-
- path: engine/search
213-
categories: [2145, 2181, 2182, 2184]
214-
inputs:
215-
$raw: "{{ if .Keywords }}name={{ re_replace .Keywords \"(?i)S0?(\\d{1,2})\" \"Saison $1\" }}{{ else }}&page=50{{ end }}"
216-
category: 2145
217-
followredirect: true
218-
# Film/Vidéo (TV which don't use Saison) p2
219-
- path: engine/search
220-
categories: [2180, 2185, 2186, 2187]
221-
inputs:
222-
name: "{{ .Keywords }}"
223-
page: 50
224-
category: 2145
225-
followredirect: true
226-
# Film/Vidéo (TV/Anime) p1
227-
- path: engine/search
228-
categories: [2179]
229-
inputs:
230-
name: "{{ .Keywords }}"
231-
category: 2145
232-
sub_category: 2179
233-
followredirect: true
234-
# Film/Vidéo (TV/Anime) p2
235-
- path: engine/search
236-
categories: [2179]
237-
inputs:
238-
$raw: "{{ if .Keywords }}name={{ re_replace .Keywords \"(?i)S0?(\\d{1,2})\" \"Saison $1\" }}{{ else }}&page=50{{ end }}"
239-
category: 2145
240-
sub_category: 2179
241-
followredirect: true
242-
# Film/Vidéo (Movies/Other)
243-
- path: engine/search
244-
categories: [2178]
245-
inputs:
246-
name: "{{ .Keywords }}"
247-
category: 2145
248-
sub_category: 2178
249-
followredirect: true
250-
# Film/Vidéo (Movies)
251-
- path: engine/search
252-
categories: [2183]
253-
inputs:
254-
name: "{{ .Keywords }}"
255-
category: 2145
256-
sub_category: 2183
257-
followredirect: true
258-
# Audio p1
259-
- path: engine/search
260-
categories: [2139, 2147, 2148, 2150, 2149]
261-
inputs:
262-
name: "{{ .Keywords }}"
263-
category: 2139
264-
followredirect: true
265-
# Audio p2
266-
- path: engine/search
267-
categories: [2139, 2147, 2148, 2150, 2149]
268-
inputs:
269-
name: "{{ .Keywords }}"
270-
page: 50
271-
category: 2139
272-
followredirect: true
273-
# Application
274-
- path: engine/search
275-
categories: [2144, 2177, 2176, 2171, 2172, 2174, 2175, 2173]
276-
inputs:
277-
name: "{{ .Keywords }}"
278-
category: 2144
279-
followredirect: true
280-
# Jeu vidéo
281-
- path: engine/search
282-
categories: [2142, 2167, 2159, 2160, 2162, 2163, 2165, 2164, 2166, 2161]
283-
inputs:
284-
name: "{{ .Keywords }}"
285-
category: 2142
286-
followredirect: true
287-
# eBook p1
288-
- path: engine/search
289-
categories: [2140, 2151, 2152, 2153, 2154, 2155, 2156]
290-
inputs:
291-
name: "{{ .Keywords }}"
292-
category: 2140
293-
followredirect: true
294-
# eBook p2
295-
- path: engine/search
296-
categories: [2140, 2151, 2152, 2153, 2154, 2155, 2156]
297-
inputs:
298-
name: "{{ .Keywords }}"
299-
page: 50
300-
category: 2140
301-
followredirect: true
302-
# Nulled
303-
- path: engine/search
304-
categories: [2300, 2301, 2302, 2303, 2304]
305-
inputs:
306-
name: "{{ .Keywords }}"
307-
category: 2300
308-
followredirect: true
309-
# Imprimante 3D
310263
- path: engine/search
311-
categories: [2200, 2201, 2202]
312264
inputs:
313265
name: "{{ .Keywords }}"
314-
category: 2200
315266
followredirect: true
316-
# Emulation
317267
- path: engine/search
318-
categories: [2141, 2157, 2158]
319268
inputs:
320-
name: "{{ .Keywords }}"
321-
category: 2141
322-
followredirect: true
323-
# GPS
324-
- path: engine/search
325-
categories: [2143, 2168, 2169, 2170]
326-
inputs:
327-
name: "{{ .Keywords }}"
328-
category: 2143
329-
followredirect: true
330-
# XXX
331-
- path: engine/search
332-
categories: [2188, 2401, 2189, 2190, 2191, 2402]
333-
inputs:
334-
name: "{{ .Keywords }}"
335-
category: 2188
269+
$raw: "name={{ if .Keywords }}{{ re_replace .Keywords \"(?i)S0?(\\d{1,2})\" \"Saison $1\" }}{{ else }}&page=50{{ end }}"
336270
followredirect: true
337271
inputs:
272+
$raw: "{{ if eq .Config.subcategory \"all\" }}category={{ .Config.category }}{{ else }}sub_category={{ .Config.subcategory }}{{ end }}"
338273
do: search
339274
order: "{{ .Config.type }}"
340275
sort: "{{ .Config.sort }}"

0 commit comments

Comments
 (0)