xider-torrent: new selectors

This commit is contained in:
Garfield69 2024-05-28 07:02:29 +12:00
parent 6d590324ea
commit 69c8ba3af6
1 changed files with 16 additions and 16 deletions

View File

@ -108,12 +108,15 @@ search:
incldead: 1 incldead: 1
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
# does not support imdbid search # does not support imdbid search or return imdbid in results.
rows: rows:
selector: "tr.torrentDataRow:has(a[href^=\"download.php?\"]){{ if .Config.freeleech }}:has(span[style^=\"font\"]:contains(\"0x\")){{ else }}{{ end }}" selector: "tr.torrentDataRow{{ if .Config.freeleech }}:has(span[style^=\"font\"]:contains(\"0x\")){{ else }}{{ end }}"
fields: fields:
_id:
selector: a[data-torrent-id]
attribute: data-torrent-id
category: category:
selector: a[href^="browse.php?cat="] selector: a[href^="browse.php?cat="]
attribute: href attribute: href
@ -121,7 +124,7 @@ search:
- name: querystring - name: querystring
args: cat args: cat
title: title:
selector: a[href^="details.php?id="] selector: a[data-torrent-id]
attribute: title attribute: title
filters: filters:
- name: replace - name: replace
@ -131,18 +134,15 @@ search:
- name: replace - name: replace
args: ["Második név: -", ""] args: ["Második név: -", ""]
details: details:
selector: a[href^="details.php?id="] text: "details.php?id={{ .Result._id }}"
attribute: href
download: download:
selector: a[href^="download.php?torrent="] text: "download.php?torrent={{ .Result._id }}"
attribute: href attribute: href
imdbid: poster:
selector: a[href*="imdb.com/title/tt"] selector: a[href^="kepek/"]
attribute: href attribute: href
files:
selector: a[href$="filelist=1"]
date: date:
selector: td:nth-child(7) span selector: td:nth-child(4) span
attribute: title attribute: title
filters: filters:
- name: append - name: append
@ -150,16 +150,16 @@ search:
- name: dateparse - name: dateparse
args: "yyyy-MM-dd HH:mm:ss zzz" args: "yyyy-MM-dd HH:mm:ss zzz"
size: size:
selector: td:nth-child(8) selector: td:nth-child(5)
grabs: grabs:
selector: td:nth-child(9) selector: td:nth-child(8)
seeders: seeders:
selector: td:nth-child(10) selector: td:nth-child(6)
leechers: leechers:
selector: td:nth-child(11) selector: td:nth-child(7)
description: description:
case: case:
i.fa-check: Verified span[style*="color:#ccc;"]: Verified
i.fa-question: Unverified i.fa-question: Unverified
downloadvolumefactor: downloadvolumefactor:
case: case: