mirror of https://github.com/Jackett/Jackett
riperam: switch to cookie+UA. resolves #6425
This commit is contained in:
parent
c5c1a56bf0
commit
8531b97b05
|
@ -796,12 +796,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: stripcyrillic
|
- name: stripcyrillic
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Strip Cyrillic Letters
|
label: Strip Cyrillic Letters
|
||||||
|
@ -828,22 +836,19 @@ settings:
|
||||||
a: asc
|
a: asc
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: ucp.php?mode=login
|
method: cookie
|
||||||
method: form
|
|
||||||
form: form#login
|
|
||||||
inputs:
|
inputs:
|
||||||
username: "{{ .Config.username }}"
|
cookie: "{{ .Config.cookie }}"
|
||||||
password: "{{ .Config.password }}"
|
|
||||||
autologin: on
|
|
||||||
error:
|
|
||||||
- selector: fieldset:has(div.error)
|
|
||||||
test:
|
test:
|
||||||
path: /
|
path: /
|
||||||
selector: :has(a[href*="/ucp.php?mode=logout&sid="])
|
selector: :has(a[href*="ucp.php?mode=logout"])
|
||||||
|
|
||||||
search:
|
search:
|
||||||
|
headers:
|
||||||
|
User-Agent: ["{{ .Config.useragent }}"]
|
||||||
paths:
|
paths:
|
||||||
# http://riperam.org/search.php?tracker_search=torrent&keywords=captain&terms=all&fp=1&author=&fid[]=1404&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0
|
# http://riperam.org/search.php?tracker_search=torrent&keywords=2023&terms=all&fp=0&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0
|
||||||
- path: search.php
|
- path: search.php
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"
|
$raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"
|
||||||
|
|
Loading…
Reference in New Issue