From 562c826cfa342ee30c4823f562716e832a2af659 Mon Sep 17 00:00:00 2001 From: tomaskazragis Date: Sat, 15 Jan 2022 01:29:36 +0200 Subject: [PATCH] torrent.lt: drop cookie method (#12824) --- src/Jackett.Common/Definitions/torrentlt.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentlt.yml b/src/Jackett.Common/Definitions/torrentlt.yml index 7bed53ae2a657..1634232e142b5 100644 --- a/src/Jackett.Common/Definitions/torrentlt.yml +++ b/src/Jackett.Common/Definitions/torrentlt.yml @@ -119,15 +119,25 @@ settings: asc: asc login: - method: cookie +# method: cookie +# inputs: +# cookie: "{{ .Config.cookie }}" +# test: +# path: lt/torrents.php + path: lt/account-login.php + method: post inputs: - cookie: "{{ .Config.cookie }}" + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + error: + - selector: div.klaida + - selector: p.error_text test: - path: lt/torrents.php + path: lt/torrents search: paths: - - path: lt/torrents.php + - path: lt/torrents inputs: $raw: "{{ range .Categories }}cats[]={{.}}&{{end}}" search: "{{ .Keywords }}"