mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
bithorlo: add config sort option
This commit is contained in:
@@ -63,6 +63,22 @@
|
|||||||
type: info
|
type: info
|
||||||
label: How to get the Cookie
|
label: How to get the Cookie
|
||||||
default: "<ol><li>Login to this tracker in your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here</ol>"
|
default: "<ol><li>Login to this tracker in your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here</ol>"
|
||||||
|
- name: sort
|
||||||
|
type: select
|
||||||
|
label: Sort requested from site
|
||||||
|
default: "4"
|
||||||
|
options:
|
||||||
|
"4": "created"
|
||||||
|
"7": "seeders"
|
||||||
|
"5": "size"
|
||||||
|
"1": "title"
|
||||||
|
- name: type
|
||||||
|
type: select
|
||||||
|
label: Order requested from site
|
||||||
|
default: "desc"
|
||||||
|
options:
|
||||||
|
"desc": "desc"
|
||||||
|
"asc": "asc"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
method: cookie
|
method: cookie
|
||||||
@@ -75,31 +91,13 @@
|
|||||||
inputs:
|
inputs:
|
||||||
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||||
search: "{{ .Keywords }}"
|
search: "{{ .Keywords }}"
|
||||||
|
sort: "{{ .Config.sort }}"
|
||||||
|
type: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: tr[class^="browse"]
|
selector: tr[class^="browse"]
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
download:
|
|
||||||
selector: a[href^="download.php?id="]
|
|
||||||
attribute: href
|
|
||||||
title:
|
|
||||||
selector: a[href^="torrent.php?id="]
|
|
||||||
attribute: title
|
|
||||||
banner:
|
|
||||||
optional: true
|
|
||||||
selector: a[href^="torrent.php?id="][onmouseover]
|
|
||||||
attribute: onmouseover
|
|
||||||
filters:
|
|
||||||
- name: regexp
|
|
||||||
args: ", '(.*)'"
|
|
||||||
downloadvolumefactor:
|
|
||||||
case:
|
|
||||||
img[title="Ingyenes letöltés"]: "0"
|
|
||||||
"*": "1"
|
|
||||||
uploadvolumefactor:
|
|
||||||
selector: span:contains("Feltöltési szorzó")
|
|
||||||
filters:
|
|
||||||
- name: replace
|
|
||||||
args: ["Feltöltési szorzó × ", ""]
|
|
||||||
category:
|
category:
|
||||||
selector: a[href^="browse.php?cat="]
|
selector: a[href^="browse.php?cat="]
|
||||||
attribute: href
|
attribute: href
|
||||||
@@ -107,9 +105,22 @@
|
|||||||
- name: querystring
|
- name: querystring
|
||||||
args: cat
|
args: cat
|
||||||
- name: trim # some torrents have an extra space
|
- name: trim # some torrents have an extra space
|
||||||
|
title:
|
||||||
|
selector: a[href^="torrent.php?id="]
|
||||||
|
attribute: title
|
||||||
details:
|
details:
|
||||||
selector: a[href^="torrent.php?id="]
|
selector: a[href^="torrent.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
download:
|
||||||
|
selector: a[href^="download.php?id="]
|
||||||
|
attribute: href
|
||||||
|
banner:
|
||||||
|
optional: true
|
||||||
|
selector: a[href^="torrent.php?id="][onmouseover]
|
||||||
|
attribute: onmouseover
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: ", '(.*)'"
|
||||||
size:
|
size:
|
||||||
selector: td:nth-child(4)
|
selector: td:nth-child(4)
|
||||||
grabs:
|
grabs:
|
||||||
@@ -120,3 +131,12 @@
|
|||||||
selector: td:nth-child(7)
|
selector: td:nth-child(7)
|
||||||
date:
|
date:
|
||||||
selector: "a[style=\"font-size: 8pt;cursor: pointer;\"][title]"
|
selector: "a[style=\"font-size: 8pt;cursor: pointer;\"][title]"
|
||||||
|
downloadvolumefactor:
|
||||||
|
case:
|
||||||
|
img[title="Ingyenes letöltés"]: "0"
|
||||||
|
"*": "1"
|
||||||
|
uploadvolumefactor:
|
||||||
|
selector: span:contains("Feltöltési szorzó")
|
||||||
|
filters:
|
||||||
|
- name: replace
|
||||||
|
args: ["Feltöltési szorzó × ", ""]
|
||||||
|
Reference in New Issue
Block a user