bitturk: add config sort option

This commit is contained in:
Garfield69
2019-12-14 08:14:06 +13:00
parent 80699db8ae
commit a0a54f74e7

View File

@@ -69,6 +69,21 @@
type: info type: info
label: Layout label: Layout
default: "<ol><li>Only the English Classic profile is supported.<li>Make sure to set the <b>Torrent Listing (Listeleme Biçimi)</b> option in your profile to <b>Classic (Klasik)</b><li>And set the <b>Language (Dil)</b> to <b>English</b><li>Using the <i>Modern</i> theme will prevent results, and using <i>Turkish</i> will prevent upload dates.</ol>" default: "<ol><li>Only the English Classic profile is supported.<li>Make sure to set the <b>Torrent Listing (Listeleme Biçimi)</b> option in your profile to <b>Classic (Klasik)</b><li>And set the <b>Language (Dil)</b> to <b>English</b><li>Using the <i>Modern</i> theme will prevent results, and using <i>Turkish</i> will prevent upload dates.</ol>"
- name: sort
type: select
label: Sort requested from site
default: "added"
options:
"added": "created"
"seeders": "seeders"
"size": "size"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
path: ?p=home&pid=1 path: ?p=home&pid=1
@@ -99,12 +114,14 @@
- name: re_replace - name: re_replace
args: ["[^a-zA-Z0-9]+", "%25"] args: ["[^a-zA-Z0-9]+", "%25"]
inputs: inputs:
p: "torrents" p: torrents
pid: "32" pid: 32
$raw: "{{range .Categories}}cid[]={{.}}&{{end}}" $raw: "{{ range .Categories }}cid[]={{.}}&{{end}}"
keywords: "{{ .Keywords }}" keywords: "{{ .Keywords }}"
search_type: "name" search_type: name
searchin: "title" searchin: title
"sortOptions[sortBy]": "{{ .Config.sort }}"
"sortOptions[sortOrder]": "{{ .Config.type }}"
error: error:
- selector: div.error:not(:contains("Gösterilecek sonuç bulunamadı.")) - selector: div.error:not(:contains("Gösterilecek sonuç bulunamadı."))
rows: rows:
@@ -158,9 +175,9 @@
attribute: href attribute: href
downloadvolumefactor: downloadvolumefactor:
case: case:
"img[src$=\"/torrent_free.png\"]": "0.5" "img[src$=\"/torrent_free.png\"]": 0.5
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
"img[src$=\"/torrent_multiple_upload.png\"]": "2" "img[src$=\"/torrent_multiple_upload.png\"]": 2
"*": "1" "*": 1