From b91c01ba4c25b4f6c86002a73ee6cd3b33f0831f Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 20 Dec 2019 10:41:27 +1300 Subject: [PATCH] rns: add config sort options --- src/Jackett.Common/Definitions/rns.yml | 30 ++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/rns.yml b/src/Jackett.Common/Definitions/rns.yml index bb6482d82..618dff941 100644 --- a/src/Jackett.Common/Definitions/rns.yml +++ b/src/Jackett.Common/Definitions/rns.yml @@ -88,6 +88,30 @@ modes: 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: path: login.php method: form @@ -110,7 +134,7 @@ paths: - path: browse.php inputs: - $raw: "{{range .Categories}}c{{.}}=1&{{end}}" + $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" search: "{{ .Keywords }}" # title descr all searchin: title @@ -118,6 +142,8 @@ incldead: 0 # 0 incl vip 1 no vip 2 only vip vip: 0 + sort: "{{ .Config.sort }}" + type: "{{ .Config.type }}" rows: selector: tr.browse_color, tr.freeleech_color @@ -169,7 +195,7 @@ selector: td:nth-of-type(8) a filters: - name: regexp - args: "([\\d]+)" + args: (\d+) seeders: selector: td:nth-of-type(9) leechers: