From b98dbd70fa985255fa96b14d0718ea59f6d1b308 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 27 May 2020 17:02:34 +1200 Subject: [PATCH] hddolby: add captcha and 2fa to login. resolves #8783 --- src/Jackett.Common/Definitions/hddolby.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/hddolby.yml b/src/Jackett.Common/Definitions/hddolby.yml index 0faff927b..1f7672133 100644 --- a/src/Jackett.Common/Definitions/hddolby.yml +++ b/src/Jackett.Common/Definitions/hddolby.yml @@ -35,17 +35,30 @@ settings: - name: password type: password label: Password + - name: 2facode + type: text + label: 2FA code + - name: info_2fa + type: info + label: "About 2FA code" + default: "Only fill in the 2FA code box if you have enabled 2FA on the HDDolby Web Site. Otherwise just leave it empty." - name: info_tpp type: info label: Results Per Page default: For best results, change the Torrents per page: setting to 100 on your account profile. login: - path: takelogin.php - method: post + path: login.php + method: form + form: form[action="takelogin.php"] + captcha: + type: image + selector: img[alt="CAPTCHA"] + input: imagestring inputs: username: "{{ .Config.username }}" password: "{{ .Config.password }}" + scode: "{{ .Config.2facode }}" logout: "" securelogin: "" ssl: yes