From 04192e41516b4cfcd091689a9eb6c669ee4358de Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 30 Sep 2023 13:35:59 +1300 Subject: [PATCH] Revert "riperam: switch to cookie+UA. resolves #6425" This reverts commit 8531b97b05083e9eb347c40fc05d2948ce6fd54b. --- src/Jackett.Common/Definitions/riperam.yml | 35 ++++++++++------------ 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/src/Jackett.Common/Definitions/riperam.yml b/src/Jackett.Common/Definitions/riperam.yml index 1eb0f6809..bab0026b5 100644 --- a/src/Jackett.Common/Definitions/riperam.yml +++ b/src/Jackett.Common/Definitions/riperam.yml @@ -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: "
  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" - - name: useragent - type: text - label: User-Agent - - name: info_useragent - type: info - label: How to get the User-Agent - default: "
  1. From the same place you fetched the cookie,
  2. Find 'user-agent:' in the Request Headers section
  3. Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
" + 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}}"