From 1d9016e3dd9c3fef1ea17b03971532e49a44fab8 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Fri, 11 Oct 2024 23:34:22 +0100 Subject: [PATCH] ex-torrenty: change to cookie & UA login, add cat. resolves #15609 --- .../Definitions/ex-torrenty.yml | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/Jackett.Common/Definitions/ex-torrenty.yml b/src/Jackett.Common/Definitions/ex-torrenty.yml index 3a9d8c51f..3e0fffc43 100644 --- a/src/Jackett.Common/Definitions/ex-torrenty.yml +++ b/src/Jackett.Common/Definitions/ex-torrenty.yml @@ -20,6 +20,7 @@ caps: - {id: 265, cat: Movies/HD, desc: "Filmy x265 HEVC"} - {id: 12, cat: Movies/3D, desc: "Filmy 3D"} - {id: 530, cat: Movies/SD, desc: "Filmy TS/CAM"} + - {id: 826, cat: Movies/HD, desc: "REMUX / Complete"} - {id: 9, cat: PC, desc: "Programy"} - {id: 7, cat: Console, desc: "Konsole"} - {id: 6, cat: PC/Games, desc: "Gry"} @@ -44,12 +45,16 @@ caps: book-search: [q] settings: - - name: email + - name: cookie type: text - label: Email - - name: password - type: password - label: Password + label: Cookie + - name: info_cookie + type: info_cookie + - name: useragent + type: text + label: User-Agent + - name: info_useragent + type: info_useragent - name: multilang type: checkbox label: Replace MULTi by another language in release name @@ -63,13 +68,9 @@ settings: MULTi POLISH: MULTIi POLISH login: - path: takelogin.php - method: post + method: cookie inputs: - username: "{{ .Config.email }}" - password: "{{ .Config.password }}" - error: - - selector: table.main:contains("Logowanie nie udane") + cookie: "{{ .Config.cookie }}" test: path: index.php selector: a[href^="/logout.php"] @@ -84,6 +85,9 @@ search: search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}%{{ end }}" # does not support imdbid searching, or have imdb in results + headers: + User-Agent: ["{{ .Config.useragent }}"] + rows: selector: table[width="100%"] > tbody > tr:has(a[href*="torrent/"]) @@ -101,6 +105,7 @@ search: ":contains(\"x265 HEVC\")": 265 ":contains(\"3D\")": 12 ":contains(\"TS/CAM\")": 530 + ":contains(\"REMUX\")": 826 ":contains(\"Programy\")": 9 ":contains(\"Konsole\")": 7 ":contains(\"Gry\")": 6