1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-21 22:07:10 +00:00

hdforever: Freeleech tag fix & token option (#4994) resolves #4979

This commit is contained in:
WSHaRK993 2019-03-31 20:32:40 +02:00 committed by garfield69
parent b3d2ad94a7
commit a0eb39f87b

View file

@ -8,6 +8,18 @@
links:
- https://hdf.world/
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: usetoken
type: checkbox
label: Always try to use the FreeLeech Token
default: false
caps:
categories:
1: Movies
@ -49,9 +61,17 @@
rows:
selector: table#torrent_table > tbody > tr.torrent
fields:
download:
download-regular:
selector: a[href^="torrents.php?action=download&"]
attribute: href
download-usetoken:
selector: a[href^="torrents.php?action=download&"]
attribute: href
filters:
- name: append
args: "&usetoken=1"
download:
text: "{{if .Config.usetoken}}{{ .Result.download-usetoken }}{{else}}{{ .Result.download-regular }}{{end}}"
title:
selector: div.group_info
remove: span:nth-child(1), div.tags
@ -210,7 +230,7 @@
selector: td:nth-child(8)
downloadvolumefactor:
case:
"div.group_info:contains(\"Free\")": "0"
"div.group_info:contains(\"/ Free\")": "0"
"div.group_info:contains(\"↓75%\")": "0.75"
"div.group_info:contains(\"↓50%\")": "0.50"
"div.group_info:contains(\"↓25%\")": "0.25"