swarmazon: change to categorydesc

cat id isn't present for search.php results
latest.php has more torrents
limit isn't used
This commit is contained in:
ilike2burnthing 2022-01-17 14:30:05 +00:00 committed by GitHub
parent 5b962958ff
commit 5b4df4a6d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -55,7 +55,7 @@ login:
search:
paths:
- path: "{{ if .Keywords }}en/search/search.php?category=all&query={{ .Keywords }}&limit=50{{ else }}index.php?date_range=14{{ end }}"
- path: "{{ if .Keywords }}en/search/search.php?category=all&query={{ .Keywords }}{{ else }}latest.php?date_range=14{{ end }}"
rows:
selector: table.table-striped > tbody > tr
@ -63,12 +63,14 @@ search:
- name: andmatch
fields: # some users (rank specific?) have an extra column (td:nth-child(4)) with bookmark features
category:
selector: a[href*="/category.php?id="]
attribute: href
categorydesc:
selector: td.Name small
filters:
- name: querystring
args: id
- name: re_replace
args: ["(.+?)in\\s(.+?)", "$2"]
- name: replace
args: ["Freeleech", ""]
- name: trim
title:
selector: a[href*="/view/torrent.php?hash="]
details: