mirror of https://github.com/Jackett/Jackett
Zooqle: improve search behaviour
This commit is contained in:
parent
80960665ec
commit
20b4d93686
|
@ -10,14 +10,14 @@
|
||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
"zqf-anime": TV/Anime
|
"anime": TV/Anime
|
||||||
"zqf-app": PC
|
"app": PC
|
||||||
"zqf-book": Books
|
"book": Books
|
||||||
"zqf-game": PC/Games
|
"game": PC/Games
|
||||||
"zqf-movies": Movies
|
"movies": Movies
|
||||||
"zqf-music": Audio
|
"music": Audio
|
||||||
"zqf-other": Other/Misc
|
"other": Other/Misc
|
||||||
"zqf-tv": TV
|
"tv": TV
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
|
@ -27,10 +27,10 @@
|
||||||
settings: []
|
settings: []
|
||||||
|
|
||||||
search:
|
search:
|
||||||
# sorted by descending seeders and includes only verified torrents
|
# if keyword is specified sorted by descending seeders otherwise by time
|
||||||
# the movie+test+torrent search is for the TEST button, since Jackett does not pass any keywords which causes zooqle to choke
|
# includes only verified torrents
|
||||||
paths:
|
paths:
|
||||||
- path: "/search?q={{if .Keywords}}{{ .Keywords}}&s=ns&v=t&sd=d{{else}}movie+test+torrent+category%3AMovies{{end}}"
|
- path: "/search?{{if .Keywords}}s=ns&v=t&sd=d{{ .Keywords}}{{else}}s=dt&v=t&sd=d&q= * {{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"])
|
||||||
fields:
|
fields:
|
||||||
|
@ -43,6 +43,9 @@
|
||||||
# extract the second class
|
# extract the second class
|
||||||
- name: split
|
- name: split
|
||||||
args: [" ", 1]
|
args: [" ", 1]
|
||||||
|
# remove zqf- prefix
|
||||||
|
- name: replace
|
||||||
|
args: ["zqf-", ""]
|
||||||
details:
|
details:
|
||||||
selector: td:nth-child(2) a
|
selector: td:nth-child(2) a
|
||||||
attribute: href
|
attribute: href
|
||||||
|
|
Loading…
Reference in New Issue