mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
twilight: add config sort optoins
This commit is contained in:
@@ -37,6 +37,30 @@
|
|||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
|
settings:
|
||||||
|
- name: username
|
||||||
|
type: text
|
||||||
|
label: Username
|
||||||
|
- name: password
|
||||||
|
type: password
|
||||||
|
label: Password
|
||||||
|
- 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:
|
||||||
path: login.php
|
path: login.php
|
||||||
method: form
|
method: form
|
||||||
@@ -45,7 +69,6 @@
|
|||||||
username: "{{ .Config.username }}"
|
username: "{{ .Config.username }}"
|
||||||
password: "{{ .Config.password }}"
|
password: "{{ .Config.password }}"
|
||||||
perm_ssl: 1
|
perm_ssl: 1
|
||||||
submitme: "X"
|
|
||||||
error:
|
error:
|
||||||
- selector: h2
|
- selector: h2
|
||||||
message:
|
message:
|
||||||
@@ -58,15 +81,16 @@
|
|||||||
paths:
|
paths:
|
||||||
- path: browse.php
|
- path: browse.php
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
|
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||||
search: "{{ .Keywords }}"
|
search: "{{ .Keywords }}"
|
||||||
# 0 active 1 incldead 2 onlydead 3 freeleech
|
# 0 active 1 incldead 2 onlydead 3 freeleech
|
||||||
incldead: 1
|
incldead: 1
|
||||||
|
sort: "{{ .Config.sort }}"
|
||||||
|
type: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: tr[class^="color"]
|
selector: tr[class^="color"]
|
||||||
# filters:
|
|
||||||
# - name: andmatch
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
selector: a[href^="browse.php?cat="]
|
selector: a[href^="browse.php?cat="]
|
||||||
@@ -105,14 +129,14 @@
|
|||||||
selector: td:nth-of-type(10)
|
selector: td:nth-of-type(10)
|
||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: "([\\d]+)"
|
args: (\d+)
|
||||||
seeders:
|
seeders:
|
||||||
selector: td:nth-of-type(11)
|
selector: td:nth-of-type(11)
|
||||||
leechers:
|
leechers:
|
||||||
selector: td:nth-of-type(12)
|
selector: td:nth-of-type(12)
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
case:
|
case:
|
||||||
img[src="free.gif"]: "0"
|
img[src="free.gif"]: 0
|
||||||
"*": "1"
|
"*": 1
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
text: "1"
|
text: 1
|
||||||
|
Reference in New Issue
Block a user