mirror of https://github.com/Jackett/Jackett
cpabien: add cokie and user-agent method. resolves #7974
This commit is contained in:
parent
f9cb1d6823
commit
3dcfd990cb
|
@ -51,7 +51,28 @@
|
||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings: []
|
settings:
|
||||||
|
- name: cookie
|
||||||
|
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>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
|
||||||
|
- name: useragent
|
||||||
|
type: text
|
||||||
|
label: User-Agent
|
||||||
|
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>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</ol>"
|
||||||
|
|
||||||
|
login:
|
||||||
|
method: cookie
|
||||||
|
inputs:
|
||||||
|
cookie: "{{ .Config.cookie }}"
|
||||||
|
user-agent: "[ .Config.useragent ]"
|
||||||
|
|
||||||
download:
|
download:
|
||||||
selector: a[href^="magnet:?xt="]
|
selector: a[href^="magnet:?xt="]
|
||||||
|
|
Loading…
Reference in New Issue