diff --git a/src/Jackett.Common/Definitions/torrentleech.yml b/src/Jackett.Common/Definitions/torrentleech.yml
index fb4fbb37e..fb45aa4e6 100644
--- a/src/Jackett.Common/Definitions/torrentleech.yml
+++ b/src/Jackett.Common/Definitions/torrentleech.yml
@@ -84,6 +84,13 @@ 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 TorrentLeech Web Site. Otherwise just leave it empty."
- name: freeleech
type: checkbox
label: Search freeleech only
@@ -119,8 +126,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
+ otpkey: "{{ .Config.2facode }}"
error:
- selector: p.text-danger
+ - selector: .login-container h2:contains("One Time Password")
+ message:
+ text: "Your TorrentLeech account has 2FA enabled. Please recheck your indexer settings."
test:
path: /
selector: a[href="/user/account/logout"]