mirror of https://github.com/Jackett/Jackett
electro-torrent: switch to cookie + UA. resolves #13951
This commit is contained in:
parent
f1f8dd2f10
commit
8ea53cebc8
|
@ -51,12 +51,20 @@ 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: useragent
|
||||||
|
type: text
|
||||||
|
label: User-Agent
|
||||||
|
- name: info_useragent
|
||||||
|
type: info
|
||||||
|
label: How to get the User-Agent
|
||||||
|
default: "<ol><li>From the same place you fetched the cookie,</li><li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</li></ol>"
|
||||||
- name: multilang
|
- name: multilang
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Replace MULTi by another language in release name
|
label: Replace MULTi by another language in release name
|
||||||
|
@ -70,25 +78,17 @@ settings:
|
||||||
MULTi POLISH: MULTi POLISH
|
MULTi POLISH: MULTi POLISH
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: login.php
|
method: cookie
|
||||||
method: form
|
|
||||||
form: form[action="takelogin.php"]
|
|
||||||
captcha:
|
|
||||||
type: image
|
|
||||||
selector: img[src^="img.php?size=3"]
|
|
||||||
input: vImageCodP
|
|
||||||
inputs:
|
inputs:
|
||||||
username: "{{ .Config.username }}"
|
cookie: "{{ .Config.cookie }}"
|
||||||
password: "{{ .Config.password }}"
|
|
||||||
returnto: ""
|
|
||||||
error:
|
|
||||||
- selector: div#center-side:contains("Logowanie nie")
|
|
||||||
test:
|
test:
|
||||||
path: /
|
path: /
|
||||||
selector: a[href$="/logout.php"]
|
selector: a[href$="/logout.php"]
|
||||||
|
|
||||||
search:
|
search:
|
||||||
# http://electro-torrent.pl/szukaj.php?search=&typ=torrent&cat=0
|
# http://electro-torrent.pl/szukaj.php?search=&typ=torrent&cat=0
|
||||||
|
headers:
|
||||||
|
User-Agent: ["{{ .Config.useragent }}"]
|
||||||
paths:
|
paths:
|
||||||
- path: szukaj.php
|
- path: szukaj.php
|
||||||
allowEmptyInputs: true
|
allowEmptyInputs: true
|
||||||
|
|
Loading…
Reference in New Issue