diff --git a/src/Jackett.Common/Definitions/torrentmasters.yml b/src/Jackett.Common/Definitions/torrentmasters.yml
index 3191c7776..42d6d7ae8 100644
--- a/src/Jackett.Common/Definitions/torrentmasters.yml
+++ b/src/Jackett.Common/Definitions/torrentmasters.yml
@@ -48,12 +48,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: "
- Login to this tracker with your browser
- Open the DevTools panel by pressing F12
- Select the Network tab
- Click on the Doc button (Chrome Browser) or HTML button (FireFox)
- Refresh the page by pressing F5
- Click on the first row entry
- Select the Headers tab on the Right panel
- Find 'cookie:' in the Request Headers section
- 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: "- From the same place you fetched the cookie,
- Find 'user-agent:' in the Request Headers section
- Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
"
- name: freeleech
type: checkbox
label: Search FreeLeech only
@@ -80,16 +88,12 @@ settings:
default: For best results, change the Torrentek száma egy oldalon setting to 100 on your account profile.
login:
- method: post
- path: takelogin.php
+ method: cookie
inputs:
- username: "{{ .Config.username }}"
- password: "{{ .Config.password }}"
- error:
- - selector: "table:contains(\"Hibás belépés\")"
+ cookie: "{{ .Config.cookie }}"
test:
path: index.php
- selector: a[href^="logout.php"]
+ selector: a[href^="/logout"]
download:
selectors:
@@ -97,6 +101,8 @@ download:
attribute: href
search:
+ headers:
+ User-Agent: ["{{ .Config.useragent }}"]
paths:
- path: letoltes.php
inputs: