From cc7bbcc022f30761699e42cb77957ef6f93c3c8f Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 17 Dec 2019 20:46:08 +1300 Subject: [PATCH] legittorrents: add config sort options --- .../Definitions/legittorrents.yml | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Definitions/legittorrents.yml b/src/Jackett.Common/Definitions/legittorrents.yml index 3bccd9e87..9b8874bc1 100644 --- a/src/Jackett.Common/Definitions/legittorrents.yml +++ b/src/Jackett.Common/Definitions/legittorrents.yml @@ -25,20 +25,38 @@ modes: search: [q] - settings: [] + settings: + - name: sort + type: select + label: Sort requested from site + default: "3" + options: + "3": "created" + "5": "seeders" + "2": "title" + - name: type + type: select + label: Order requested from site + default: "2" + options: + "2": "desc" + "1": "asc" + search: paths: # http://www.legittorrents.info/index.php?page=torrents&search=windows&category=0&active=0 - path: index.php inputs: - page: "torrents" + page: torrents search: "{{ .Keywords }}" - category: "{{range .Categories}}{{.}};{{end}}" + category: "{{ range .Categories }}{{.}};{{end}}" # 0 all 1 active 2 deadonly active: 1 + rows: selector: table table table.lista > tbody > tr:has(a[href^="download.php?id="]) + fields: category: selector: a[href^="index.php?page=torrents&category="]