From 1bbad5e2e72704bc550af66e8788aec884c735d8 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 14 Oct 2024 14:04:50 +1300 Subject: [PATCH] electro-torrent: back to using login page. #!3951 --- .../Definitions/electro-torrent.yml | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/Jackett.Common/Definitions/electro-torrent.yml b/src/Jackett.Common/Definitions/electro-torrent.yml index 1eb21cc80..c569f2c63 100644 --- a/src/Jackett.Common/Definitions/electro-torrent.yml +++ b/src/Jackett.Common/Definitions/electro-torrent.yml @@ -55,16 +55,12 @@ caps: book-search: [q] settings: - - name: cookie + - name: username type: text - label: Cookie - - name: info_cookie - type: info_cookie - - name: useragent - type: text - label: User-Agent - - name: info_useragent - type: info_useragent + label: Username + - name: password + type: password + label: Password - name: multilang type: checkbox label: Replace MULTi by another language in release name @@ -78,17 +74,25 @@ settings: MULTi POLISH: MULTi POLISH login: - method: cookie + path: logowanie + method: form + form: form[action="takelogin.php"] + captcha: + type: image + selector: img[src^="/img.php?size=3"] + input: vImageCodP inputs: - cookie: "{{ .Config.cookie }}" + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + returnto: "" + error: + - selector: div#center-side:contains("Logowanie nie") test: path: / selector: a[href$="/logout.php"] search: # http://electro-torrent.pl/szukaj.php?search=&typ=torrent&cat=0 - headers: - User-Agent: ["{{ .Config.useragent }}"] paths: - path: szukaj.php allowEmptyInputs: true