mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 11:48:49 +00:00
torrent-turk: switch to cookie login method. resolves #7886
This commit is contained in:
parent
3a4b4d4c0e
commit
4fc0fc09b8
1 changed files with 8 additions and 21 deletions
|
@ -66,12 +66,13 @@ caps:
|
||||||
book-search: [q]
|
book-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: username
|
- name: cookie
|
||||||
type: text
|
type: text
|
||||||
label: Username
|
label: Cookie
|
||||||
- name: password
|
- name: info
|
||||||
type: password
|
type: info
|
||||||
label: Password
|
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: freeleech
|
- name: freeleech
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Filter freeleech only
|
label: Filter freeleech only
|
||||||
|
@ -101,23 +102,9 @@ settings:
|
||||||
default: "If you are getting the error: <b>An error has occurred!You can't view this page unless you read all your unread messages</b>, then access the site with your browser and <b>mark as read</b> all PMs."
|
default: "If you are getting the error: <b>An error has occurred!You can't view this page unless you read all your unread messages</b>, then access the site with your browser and <b>mark as read</b> all PMs."
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: ?p=home&pid=1
|
method: cookie
|
||||||
method: form
|
|
||||||
form: form#loginbox_form
|
|
||||||
submitpath: ajax/login.php
|
|
||||||
inputs:
|
inputs:
|
||||||
action: login
|
cookie: "{{ .Config.cookie }}"
|
||||||
loginbox_membername: "{{ .Config.username }}"
|
|
||||||
loginbox_password: "{{ .Config.password }}"
|
|
||||||
loginbox_remember: 1
|
|
||||||
selectorinputs:
|
|
||||||
securitytoken:
|
|
||||||
selector: "script:contains(\"stKey: \")"
|
|
||||||
filters:
|
|
||||||
- name: regexp
|
|
||||||
args: "stKey: \"(.+?)\","
|
|
||||||
error:
|
|
||||||
- selector: ":contains(\"-ERROR-\")"
|
|
||||||
test:
|
test:
|
||||||
path: ?p=torrents&type=bookmarks&pid=508
|
path: ?p=torrents&type=bookmarks&pid=508
|
||||||
selector: a#logout
|
selector: a#logout
|
||||||
|
|
Loading…
Add table
Reference in a new issue