hdbits: add filter by freeleech setting. resolves #13244

Also add sort, order, search by imdbid, imdbid field, and disable searching by descriptions
This commit is contained in:
ilike2burnthing 2022-05-19 07:39:12 +01:00 committed by GitHub
parent 9247e3de1b
commit c4d900cef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 3 deletions

View File

@ -21,10 +21,38 @@ caps:
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep] tv-search: [q, season, ep, imdbid]
movie-search: [q] movie-search: [q, imdbid]
music-search: [q] music-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Filter FreeLeech only
default: false
- name: sort
type: select
label: Sort requested from site
default: added
options:
added: created
seeders: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: DESC
options:
DESC: desc
ASC: asc
login: login:
path: login path: login
method: form method: form
@ -43,9 +71,15 @@ search:
inputs: inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}" $raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
descriptions: 0
imdbgt: 0
imdblt: 10
imdb: "{{ .Query.IMDBID }}"
sort: "{{ .Config.sort }}"
d: "{{ .Config.type }}"
rows: rows:
selector: table#torrent-list > tbody > tr:has(a[href^="/details.php?id="]) selector: table#torrent-list > tbody > tr:has(a[href^="/details.php?id="]){{ if .Config.freeleech }}:has(a[title=\"100% FL: no download is counted.\"]){{ else }}{{ end }}
fields: fields:
category: category:
@ -75,6 +109,12 @@ search:
filters: filters:
- name: append - name: append
args: " ago" args: " ago"
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
filters:
- name: querystring
args: id
downloadvolumefactor: downloadvolumefactor:
case: case:
"a[title=\"25% Free Leech: only 75% of the download is counted.\"]": 0.25 "a[title=\"25% Free Leech: only 75% of the download is counted.\"]": 0.25