Skip to content

Commit

Permalink
tormac: back to cookie, + fix seeds when 0. #15130
Browse files Browse the repository at this point in the history
I only now understood what the original reason for using cookies was ;-D
  • Loading branch information
garfield69 committed Mar 9, 2024
1 parent 71c3063 commit 2ef13a4
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions src/Jackett.Common/Definitions/tormac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ caps:
allowrawsearch: true

settings:
- name: username
- name: cookie
type: text
label: Username
- name: password
type: password
label: Password
label: Cookie
- name: info_cookie
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser</li><li>Open the <b>DevTools</b> panel by pressing <b>F12</b></li><li>Select the <b>Network</b> tab</li><li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)</li><li>Refresh the page by pressing <b>F5</b></li><li>Click on the first row entry</li><li>Select the <b>Headers</b> tab on the Right panel</li><li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</li></ol>"
- name: stripcyrillic
type: checkbox
label: Strip Cyrillic Letters
Expand Down Expand Up @@ -104,18 +105,11 @@ settings:
default: "Inactive accounts are automatically deleted after 90 days from the moment the system first detects inactivity."

login:
path: login.php
method: form
form: form[action="login.php"]
method: cookie
inputs:
login_username: "{{ .Config.username }}"
login_password: "{{ .Config.password }}"
redirect: index.php
login: Вход
error:
- selector: h4.warnColor1
cookie: "{{ .Config.cookie }}"
test:
path: /
path: index.php
selector: "a[onclick=\"return post2url('login.php', {logout: 1});\"]"

search:
Expand Down

0 comments on commit 2ef13a4

Please sign in to comment.