Revert "riperam: switch to cookie+UA. resolves #6425"

This reverts commit 8531b97b05.
This commit is contained in:
Garfield69 2023-09-30 13:35:59 +13:00
parent 8531b97b05
commit 04192e4151
1 changed files with 15 additions and 20 deletions

View File

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