From 71c30631b7ed5e8c4ba9720400fdb43893aa4668 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 9 Mar 2024 14:40:23 +1300 Subject: [PATCH] tormac: regular login, + fix seeds when 0. #15130 --- src/Jackett.Common/Definitions/tormac.yml | 26 ++++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/Jackett.Common/Definitions/tormac.yml b/src/Jackett.Common/Definitions/tormac.yml index 31f377f49..559574082 100644 --- a/src/Jackett.Common/Definitions/tormac.yml +++ b/src/Jackett.Common/Definitions/tormac.yml @@ -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: "
  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.
" + label: Username + - name: password + type: password + label: Password - name: stripcyrillic type: checkbox label: Strip Cyrillic Letters @@ -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: @@ -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: