mirror of https://github.com/Jackett/Jackett
zooqle: switch to categorymappings
code tidy when seeds and leech are missing default to 0
This commit is contained in:
parent
1d7ea48505
commit
cb9799d83b
|
@ -29,16 +29,16 @@ legacylinks:
|
||||||
- https://zooqle.unblockit.top/
|
- https://zooqle.unblockit.top/
|
||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categorymappings:
|
||||||
"anime": TV/Anime
|
- {id: anime, cat: TV/Anime, desc: Anime}
|
||||||
"app": PC
|
- {id: app, cat: PC, desc: App}
|
||||||
"book": Books
|
- {id: book, cat: Books, desc: Book}
|
||||||
"files": Other/Misc
|
- {id: files, cat: Other/Misc, desc: Files}
|
||||||
"game": PC/Games
|
- {id: game, cat: PC/Games, desc: Game}
|
||||||
"movies": Movies
|
- {id: movies, cat: Movies, desc: Movies}
|
||||||
"music": Audio
|
- {id: music, cat: Audio, desc: Music}
|
||||||
"other": Other
|
- {id: other, cat: Other, desc: Other}
|
||||||
"tv": TV
|
- {id: tv, cat: TV, desc: TV}
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
|
@ -51,23 +51,23 @@ settings:
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
default: "dt"
|
default: dt
|
||||||
options:
|
options:
|
||||||
"dt": "created"
|
dt: created
|
||||||
"ns": "seeders"
|
ns: seeders
|
||||||
"sz": "size"
|
sz: size
|
||||||
- name: type
|
- name: type
|
||||||
type: select
|
type: select
|
||||||
label: Order requested from site
|
label: Order requested from site
|
||||||
default: "d"
|
default: d
|
||||||
options:
|
options:
|
||||||
"d": "desc"
|
d: desc
|
||||||
"a": "asc"
|
a: asc
|
||||||
|
|
||||||
search:
|
search:
|
||||||
# includes only verified torrents
|
# includes only verified torrents
|
||||||
paths:
|
paths:
|
||||||
- path: "search?{{ if .Keywords }}s={{ .Config.sort }}&v=t&sd={{ .Config.type }}&q={{ .Keywords }}{{else}}s={{ .Config.sort }}&v=t&sd={{ .Config.type }}&q= *{{end}}{{ if .Categories }} category:{{ range .Categories }}{{.}},{{end}}{{else}}{{end}}"
|
- path: "search?s={{ .Config.sort }}&v=t&sd={{ .Config.type }}&q={{ if .Keywords }}{{ .Keywords }}{{ else }} *{{ end }}{{ if .Categories }} category:{{ range .Categories }}{{.}},{{end}}{{ else }}{{ end }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: tr:has(td[class^="text-muted3"])
|
selector: tr:has(td[class^="text-muted3"])
|
||||||
|
@ -116,6 +116,8 @@ search:
|
||||||
# a size of '– N/A –' causes Jackett to reject the row with an error
|
# a size of '– N/A –' causes Jackett to reject the row with an error
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["– N/A –", "0 Bytes"]
|
args: ["– N/A –", "0 Bytes"]
|
||||||
|
seeders:
|
||||||
|
text: 0
|
||||||
seeders:
|
seeders:
|
||||||
# seeders can be missing
|
# seeders can be missing
|
||||||
optional: true
|
optional: true
|
||||||
|
@ -126,6 +128,8 @@ search:
|
||||||
args: [" ", 1]
|
args: [" ", 1]
|
||||||
- name: replace
|
- name: replace
|
||||||
args: [",", ""]
|
args: [",", ""]
|
||||||
|
leechers:
|
||||||
|
text: 0
|
||||||
leechers:
|
leechers:
|
||||||
# leechers can be missing
|
# leechers can be missing
|
||||||
optional: true
|
optional: true
|
||||||
|
|
Loading…
Reference in New Issue