From 797cdb5b0b4ea6d845e64dbaba4faec002ec1cb4 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 8 Jan 2020 20:26:20 +1300 Subject: [PATCH] puntotorrent: add config sort options #6821 add xbtit tag add torrent per page info --- .../Definitions/puntotorrent.yml | 50 ++++++++++++++++--- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/src/Jackett.Common/Definitions/puntotorrent.yml b/src/Jackett.Common/Definitions/puntotorrent.yml index bec231448..1dc4fbd5b 100644 --- a/src/Jackett.Common/Definitions/puntotorrent.yml +++ b/src/Jackett.Common/Definitions/puntotorrent.yml @@ -91,9 +91,38 @@ - {id: 98, cat: Other, desc: "Otros formatos - Adulto (+18)"} - {id: 99, cat: Other, desc: "Otros formatos - Música"} - {id: 10, cat: Other, desc: "Otros formatos - Estrenos"} + 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: "3" + options: + "3": "created" + "5": "seeders" + "4": "size" + "2": "title" + - name: type + type: select + label: Order requested from site + default: "2" + options: + "2": "desc" + "1": "asc" + - name: info + type: info + label: Results Per Page + default: For best results, change the Torrents per page: setting to 100 on your account profile. + login: path: index.php?page=login method: post @@ -116,12 +145,16 @@ - name: re_replace args: ["[^a-zA-Z0-9]+", " "] inputs: - page: "torrents" + page: torrents $raw: "&category={{range .Categories}}{{.}};{{end}}" - active: "1" + active: 1 search: "{{ .Keywords }}" + order: "{{ .Config.sort }}" + by: "{{ .Config.type }}" + rows: selector: "#mcol .block-content-l table table.lista > tbody > tr:not(:first-child):not(.descripcion)" + fields: category: selector: td:nth-child(1) a @@ -195,11 +228,12 @@ attribute: href downloadvolumefactor: case: - img[src$="golden.gif"]: "0" - img[src$="silver.gif"]: "0.5" - "*": "1" + img[src$="golden.gif"]: 0 + img[src$="silver.gif"]: 0.5 + "*": 1 uploadvolumefactor: case: - img[src$="x2.gif"]: "2" - img[src$="x3.gif"]: "3" - "*": "1" + img[src$="x2.gif"]: 2 + img[src$="x3.gif"]: 3 + "*": 1 +# xbtit 2.3.0