diff --git a/src/Jackett.Common/Definitions/ourbits.yml b/src/Jackett.Common/Definitions/ourbits.yml index 9e70fc38d..f950abcdb 100644 --- a/src/Jackett.Common/Definitions/ourbits.yml +++ b/src/Jackett.Common/Definitions/ourbits.yml @@ -28,14 +28,34 @@ caps: movie-search: [q, imdbid] music-search: [q] +settings: + - name: username + type: text + label: Username + - 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 OurBits Web Site. Otherwise just leave it empty." + login: path: takelogin.php method: post inputs: username: "{{ .Config.username }}" password: "{{ .Config.password }}" + 2fa_code: "{{ .Config.2facode }}" + logout: "" + securelogin: "" + ssl: yes + trackerssl: yes error: - - selector: td.embedded:has(h2:contains("登录失败")) + - selector: td.embedded:has(h2:contains("失败")) message: selector: td.text test: