From 694c39503bfa79f8347448e3dfb4c2b50aeab0a0 Mon Sep 17 00:00:00 2001 From: fnk93 Date: Sat, 22 Feb 2020 20:44:41 +0100 Subject: [PATCH] The Resurrection: Fix multiple logins (#7298) --- .../Definitions/theresurrection.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/theresurrection.yml b/src/Jackett.Common/Definitions/theresurrection.yml index 0d33b65c7..b38a4b1a7 100644 --- a/src/Jackett.Common/Definitions/theresurrection.yml +++ b/src/Jackett.Common/Definitions/theresurrection.yml @@ -75,16 +75,24 @@ # "asc": "asc" login: - path: sbg_login_new.php - method: form + path: index.php?page=login + method: post inputs: uid: "{{ .Config.username }}" pwd: "{{ .Config.password }}" error: - - selector: div.altertBoxStyle:contains("Passwort falsch") - - selector: div.altertBoxStyle:contains("Benutzername falsch") + - selector: body[onLoad^="makeAlert('"] + message: + selector: body[onLoad^="makeAlert('"] + attribute: onLoad + filters: + - name: replace + args: ["makeAlert('Error' , '", ""] + - name: replace + args: ["');", ""] test: path: index.php + selector: a[href="logout.php"] download: selector: a[href^="download.php?id="]