mirror of
https://github.com/Jackett/Jackett
synced 2025-03-09 21:54:51 +00:00
trancetraffic: add fl only, check if torrent is FL and avoid details redirect (#13963)
This commit is contained in:
parent
872c8674bf
commit
749167ba4a
1 changed files with 23 additions and 1 deletions
|
@ -16,6 +16,22 @@ caps:
|
|||
search: [q]
|
||||
music-search: [q, artist]
|
||||
|
||||
settings:
|
||||
- name: username
|
||||
type: text
|
||||
label: Username
|
||||
- name: password
|
||||
type: password
|
||||
label: Password
|
||||
- name: freeleech
|
||||
type: checkbox
|
||||
label: Filter freeleech only
|
||||
default: false
|
||||
- name: info_tpp
|
||||
type: info
|
||||
label: Results Per Page
|
||||
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
|
||||
|
||||
login:
|
||||
path: takelogin.php
|
||||
method: post
|
||||
|
@ -32,6 +48,7 @@ search:
|
|||
- path: browse.php
|
||||
inputs:
|
||||
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
|
||||
$raw: "{{ if .Config.freeleech }}&includeFL=on{{ else }}{{ end }}"
|
||||
|
||||
rows:
|
||||
selector: table.mainouter table > tbody > tr:has(a[href^="details.php?id="])
|
||||
|
@ -47,6 +64,9 @@ search:
|
|||
details:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["&hit=1", ""] # avoid redirect
|
||||
date:
|
||||
selector: td:nth-child(6)
|
||||
# auto adjusted by site account profile
|
||||
|
@ -64,7 +84,9 @@ search:
|
|||
size:
|
||||
selector: td:nth-child(7)
|
||||
downloadvolumefactor:
|
||||
text: 1
|
||||
case:
|
||||
"span:contains(\"FREELEECH\")": 0
|
||||
"*": 1
|
||||
uploadvolumefactor:
|
||||
text: 1
|
||||
# engine tbd
|
||||
|
|
Loading…
Add table
Reference in a new issue