oldgreektracker: new selectors

This commit is contained in:
Garfield69
2024-06-28 06:30:27 +12:00
parent d7d37a2af0
commit 50832a749c

View File

@@ -150,7 +150,7 @@ download:
inputs:
torrentid: "{{ .DownloadUri.Query.id }}"
selectors:
- selector: a[href*="download.php?id="]
- selector: a[href*="download-torrent-"]
attribute: href
search:
@@ -173,28 +173,28 @@ search:
order: "{{ if .Config.freeleech }}asc{{ else }}{{ .Config.type }}{{ end }}"
rows:
selector: "table.sortable tr:has(a[href*=\"/download.php?id=\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
selector: "table.sortable tr:has(a[href*=\"download-torrent-\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
fields:
category:
selector: a[href*="/browse.php?category="]
selector: a[href*="torrent-category-"]
attribute: href
filters:
- name: querystring
args: category
- name: regexp
args: -(\d+)/
title_default:
# is usually abbreaviated
selector: a[href*="/details.php?id="]
selector: a[href*="torrent-details-"]
title:
# while still abbreviated, is usually longer than the default
selector: div.tooltip-content div
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href*="/details.php?id="]
selector: a[href*="torrent-details-"]
attribute: href
download:
selector: a[href*="/details.php?id="]
selector: a[href*="torrent-details-"]
attribute: href
magnet:
selector: a[href^="magnet:?xt="]
@@ -209,7 +209,7 @@ search:
- name: regexp
args: "(\\d{2}-\\d{2}-\\d{2} \\d{2}:\\d{2})"
- name: dateparse
args: "dd:MM:yy HH:mm"
args: "dd-MM-yy HH:mm"
size:
selector: td:nth-last-child(5)
grabs: