Zooqle: improve search behaviour

This commit is contained in:
kaso17 2017-12-18 18:32:04 +01:00
parent 80960665ec
commit 20b4d93686
1 changed files with 14 additions and 11 deletions

View File

@ -10,14 +10,14 @@
caps:
categories:
"zqf-anime": TV/Anime
"zqf-app": PC
"zqf-book": Books
"zqf-game": PC/Games
"zqf-movies": Movies
"zqf-music": Audio
"zqf-other": Other/Misc
"zqf-tv": TV
"anime": TV/Anime
"app": PC
"book": Books
"game": PC/Games
"movies": Movies
"music": Audio
"other": Other/Misc
"tv": TV
modes:
search: [q]
@ -27,10 +27,10 @@
settings: []
search:
# sorted by descending seeders and includes only verified torrents
# the movie+test+torrent search is for the TEST button, since Jackett does not pass any keywords which causes zooqle to choke
# if keyword is specified sorted by descending seeders otherwise by time
# includes only verified torrents
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:
selector: tr:has(td[class^="text-muted3"])
fields:
@ -43,6 +43,9 @@
# extract the second class
- name: split
args: [" ", 1]
# remove zqf- prefix
- name: replace
args: ["zqf-", ""]
details:
selector: td:nth-child(2) a
attribute: href