diff --git a/src/Jackett.Common/Definitions/electro-torrent.yml b/src/Jackett.Common/Definitions/electro-torrent.yml index 1bb0a7794..634db45f3 100644 --- a/src/Jackett.Common/Definitions/electro-torrent.yml +++ b/src/Jackett.Common/Definitions/electro-torrent.yml @@ -51,12 +51,20 @@ caps: book-search: [q] settings: - - name: username + - name: cookie type: text - label: Username - - name: password - type: password - label: Password + label: Cookie + - name: info + type: info + label: How to get the Cookie + default: "
  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" + - name: useragent + type: text + label: User-Agent + - name: info_useragent + type: info + label: How to get the User-Agent + default: "
  1. From the same place you fetched the cookie,
  2. Find 'user-agent:' in the Request Headers section
  3. Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
" - name: multilang type: checkbox label: Replace MULTi by another language in release name @@ -70,25 +78,17 @@ settings: MULTi POLISH: MULTi POLISH login: - path: login.php - method: form - form: form[action="takelogin.php"] - captcha: - type: image - selector: img[src^="img.php?size=3"] - input: vImageCodP + method: cookie inputs: - username: "{{ .Config.username }}" - password: "{{ .Config.password }}" - returnto: "" - error: - - selector: div#center-side:contains("Logowanie nie") + cookie: "{{ .Config.cookie }}" test: path: / selector: a[href$="/logout.php"] search: # http://electro-torrent.pl/szukaj.php?search=&typ=torrent&cat=0 + headers: + User-Agent: ["{{ .Config.useragent }}"] paths: - path: szukaj.php allowEmptyInputs: true