riperam: switch to cookie+UA. resolves #6425

This commit is contained in:
Garfield69 2023-09-30 10:56:42 +13:00
parent c5c1a56bf0
commit 8531b97b05
1 changed files with 20 additions and 15 deletions

View File

@ -796,12 +796,20 @@ caps:
book-search: [q]
settings:
- name: username
- name: cookie
type: text
label: Username
- name: password
type: password
label: Password
label: Cookie
- name: info
type: info
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
type: checkbox
label: Strip Cyrillic Letters
@ -828,22 +836,19 @@ settings:
a: asc
login:
path: ucp.php?mode=login
method: form
form: form#login
method: cookie
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
autologin: on
error:
- selector: fieldset:has(div.error)
cookie: "{{ .Config.cookie }}"
test:
path: /
selector: :has(a[href*="/ucp.php?mode=logout&sid="])
selector: :has(a[href*="ucp.php?mode=logout"])
search:
headers:
User-Agent: ["{{ .Config.useragent }}"]
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
inputs:
$raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"