diff --git a/src/Jackett.Common/Definitions/acrossthetasman.yml b/src/Jackett.Common/Definitions/acrossthetasman.yml index 5e46c4a0d..64d68272f 100644 --- a/src/Jackett.Common/Definitions/acrossthetasman.yml +++ b/src/Jackett.Common/Definitions/acrossthetasman.yml @@ -47,6 +47,8 @@ login: vb_login_password: "{{ .Config.password }}" cookieuser: 1 do: login + error: + - selector: div.restore:contains("invalid username or password") test: path: torrents.php selector: a[href*="logout.php"] diff --git a/src/Jackett.Common/Definitions/bestcore.yml b/src/Jackett.Common/Definitions/bestcore.yml index d73c29275..16c39a1b2 100644 --- a/src/Jackett.Common/Definitions/bestcore.yml +++ b/src/Jackett.Common/Definitions/bestcore.yml @@ -106,6 +106,8 @@ login: inputs: username: "{{ .Config.username }}" password: "{{ .Config.password }}" + error: + - selector: :root:contains("Sikertelen bejelentkezés") test: path: index.php selector: a[href^="logout.php?c="] diff --git a/src/Jackett.Common/Definitions/carpathians.yml b/src/Jackett.Common/Definitions/carpathians.yml index eb2137e79..0ab810048 100644 --- a/src/Jackett.Common/Definitions/carpathians.yml +++ b/src/Jackett.Common/Definitions/carpathians.yml @@ -72,6 +72,8 @@ login: inputs: username: "{{ .Config.username }}" password: "{{ .Config.password }}" + error: + - selector: table.main:contains("Sikertelen bejelentkezés") test: path: index.php selector: a[href^="logout.php"] diff --git a/src/Jackett.Common/Definitions/deildu.yml b/src/Jackett.Common/Definitions/deildu.yml index 0b0347a36..d8b0d964a 100644 --- a/src/Jackett.Common/Definitions/deildu.yml +++ b/src/Jackett.Common/Definitions/deildu.yml @@ -62,6 +62,8 @@ login: username: "{{ .Config.username }}" password: "{{ .Config.password }}" keeplogged: 1 + error: + - selector: table.main:contains("Login failed") test: path: index.php selector: a[href^="logout.php"] diff --git a/src/Jackett.Common/Definitions/diablotorrent.yml b/src/Jackett.Common/Definitions/diablotorrent.yml index e6bb2df3b..6f9d85057 100644 --- a/src/Jackett.Common/Definitions/diablotorrent.yml +++ b/src/Jackett.Common/Definitions/diablotorrent.yml @@ -100,6 +100,8 @@ login: login: 1 belepes: 1 rhash: 123 + error: + - selector: :root:contains("{\"hiba\":true,") test: path: browse selector: a[href*="logout"] diff --git a/src/Jackett.Common/Definitions/futuretorrent.yml b/src/Jackett.Common/Definitions/futuretorrent.yml index 5b0539236..742f9a0cc 100644 --- a/src/Jackett.Common/Definitions/futuretorrent.yml +++ b/src/Jackett.Common/Definitions/futuretorrent.yml @@ -114,6 +114,16 @@ login: inputs: username: "{{ .Config.username }}" password: "{{ .Config.password }}" + error: + - selector: table:has(a[href*="login.php?error=1"]) + message: + text: "ERROR: Incorrect username!" + - selector: table:has(a[href*="login.php?error=4"]) + message: + text: "ERROR: Incorrect password!" + - selector: table:has(a[href*="login.php?error="]) + message: + text: "ERROR: Something went wrong during login!" test: path: index.php selector: a[href*="/logout.php"]