diff --git a/src/Jackett.Common/Definitions/Bittorrentfiles.yml b/src/Jackett.Common/Definitions/Bittorrentfiles.yml index 7daa6dd08..b6453da0e 100644 --- a/src/Jackett.Common/Definitions/Bittorrentfiles.yml +++ b/src/Jackett.Common/Definitions/Bittorrentfiles.yml @@ -107,6 +107,22 @@ - name: pass type: password label: Password + - name: sort + type: select + label: Sort requested from site + default: "added" + options: + "added": "created" + "seeds": "seeders" + "size": "size" + "name": "title" + - name: type + type: select + label: Order requested from site + default: "desc" + options: + "desc": "desc" + "asc": "asc" login: path: signin.php @@ -123,12 +139,14 @@ search: path: browse.php inputs: - $raw: "{{range .Categories}}c{{.}}=1&{{end}}" - search: "{{if .Query.IMDBID}}{{.Query.IMDBID}}{{else}}{{.Keywords}}{{end}}" + $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" + search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" # 0=title 1=descr 2=nfo 3=all - search_where: "{{if .Query.IMDBID}}3{{else}}0{{end}}" + search_where: "{{ if .Query.IMDBID }}3{{else}}0{{end}}" # 0=active 1=all 2=dead 4=upload 5=doubleup 6=halfdown 7=highlight =request status: 1 + orderby: "{{ .Config.sort }}" + sort: "{{ .Config.type }}" rows: selector: table.tableinborder > tbody > tr:has(a[href^="details.php"]) @@ -199,11 +217,11 @@ args: "02.01.2006 15:04:05" downloadvolumefactor: case: - img[alt="OU"]: "0" - img[alt="D/2"]: "0.5" - img[alt="D / 2"]: "0.5" - "*": "1" + img[alt="OU"]: 0 + img[alt="D/2"]: 0.5 + img[alt="D / 2"]: 0.5 + "*": 1 uploadvolumefactor: case: - img[alt="2xU"]: "2" - "*": "1" + img[alt="2xU"]: 2 + "*": 1