mirror of
https://github.com/Jackett/Jackett
synced 2025-03-09 13:52:03 +00:00
WOT: add freeleech and onlyupload search options. resolves #9213
note the site still does not provide flags on the row results (onlu available on details page) but the search options do work.
This commit is contained in:
parent
6b51b5c93b
commit
83a08bfa88
1 changed files with 6 additions and 3 deletions
|
@ -83,11 +83,11 @@ settings:
|
||||||
label: Pin
|
label: Pin
|
||||||
- name: freeleech
|
- name: freeleech
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Filter FreeLeech only
|
label: Search FreeLeech
|
||||||
default: false
|
default: false
|
||||||
- name: onlyupload
|
- name: onlyupload
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Filter OnlyUpload only
|
label: Search OnlyUpload
|
||||||
default: false
|
default: false
|
||||||
- name: info_free
|
- name: info_free
|
||||||
type: info
|
type: info
|
||||||
|
@ -133,6 +133,7 @@ login:
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
|
# https://w-o-t.pro/browse.php?showsearch=1&search=&incldead=0&orderby=added&sort=desc&onlyupload=yes&freeleech=yes
|
||||||
- path: browse.php
|
- path: browse.php
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||||
|
@ -142,9 +143,11 @@ search:
|
||||||
incldead: 1
|
incldead: 1
|
||||||
orderby: "{{ .Config.sort }}"
|
orderby: "{{ .Config.sort }}"
|
||||||
sort: "{{ .Config.type }}"
|
sort: "{{ .Config.type }}"
|
||||||
|
onlyupload: "{{ if .Config.onlyupload }}yes{{ else }}{{ end }}"
|
||||||
|
freeleech: "{{ if .Config.freeleech }}yes{{ else }}{{ end }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: "table.tableinborder[border=\"0\"][cellspacing=\"1\"][cellpadding=\"4\"][style=\"width:100%\"] > tbody > tr:has(a[href^=\"download.php\"]):has(a[href^=\"browse.php?cat=\"]){{ if .Config.freeleech }}:has(img[src=\"pic/freeleech.gif\"]){{ else }}{{ end }}{{ if .Config.onlyupload }}:has(img[src=\"pic/oupic.gif\"]){{ else }}{{ end }}"
|
selector: "table.tableinborder[border=\"0\"][cellspacing=\"1\"][cellpadding=\"4\"][style=\"width:100%\"] > tbody > tr:has(a[href^=\"download.php\"]):has(a[href^=\"browse.php?cat=\"])"
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
|
|
Loading…
Add table
Reference in a new issue