Skip to content

Commit

Permalink
tormac: regular login, + fix seeds when 0. #15130
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Mar 9, 2024
1 parent 6850646 commit 71c3063
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions src/Jackett.Common/Definitions/tormac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ caps:
allowrawsearch: true

settings:
- name: cookie
- name: username
type: text
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>"
label: Username
- name: password
type: password
label: Password
- name: stripcyrillic
type: checkbox
label: Strip Cyrillic Letters
Expand Down Expand Up @@ -105,11 +104,18 @@ settings:
default: "Inactive accounts are automatically deleted after 90 days from the moment the system first detects inactivity."

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

search:
Expand Down Expand Up @@ -216,7 +222,7 @@ search:
size:
selector: td:nth-child(6) > u
seeders:
selector: td > b.seedmed
selector: td > b.seedmed, span[title="сида не было"] > b
leechers:
selector: td.leechmed > b
grabs:
Expand Down

0 comments on commit 71c3063

Please sign in to comment.