funkytorrents: add freeleech search. #9456

`free=1` seems to do something, returning only 53 results, but I have no idea what
This commit is contained in:
ilike2burnthing 2023-03-29 05:37:17 +01:00 committed by GitHub
parent 26ea351dc5
commit 3c692a8dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -57,6 +57,18 @@ caps:
music-search: [q, artist]
book-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
login:
path: takelogin.php
method: post
@ -72,9 +84,14 @@ search:
paths:
- path: browse.php
inputs:
# cat search doesn't work if our custom MP3 and Lossless cats are selected
# $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
cat: 0
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 active, 1 incldead, 2 dead
incldead: 1
# 0 all, 1 not documented, 2 free
free: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
rows:
selector: table.mainouter > tbody > tr > td.outer > table > tbody > tr.mouse_out