1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 22:23:20 +00:00

prostylex: switch to cookie and UA login. #3966

This commit is contained in:
ilike2burnthing 2022-08-06 22:07:32 +01:00 committed by GitHub
parent 57c6323cdc
commit d3e95801a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,12 +83,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>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 (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<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
- 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>"
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -111,14 +119,9 @@ settings:
default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolverr</a> to access it. default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolverr</a> to access it.
login: login:
path: account-login.php method: cookie
method: post
inputs: inputs:
username: "{{ .Config.username }}" cookie: "{{ .Config.cookie }}"
password: "{{ .Config.password }}"
remember: yes
error:
- selector: div.myFrame:contains("Access Denied")
test: test:
path: search.php path: search.php
@ -140,6 +143,9 @@ search:
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
order: "{{ .Config.type }}" order: "{{ .Config.type }}"
headers:
User-Agent: ["{{ .Config.useragent }}"]
rows: rows:
selector: tr.t-row selector: tr.t-row