thesceneplace: ignore recommended section #12383

and fix superuser detection
This commit is contained in:
Garfield69
2021-10-11 18:27:52 +13:00
parent 8e9a6f7d79
commit 0b280ff101

View File

@@ -103,7 +103,7 @@ search:
# does not support imdbid search and does not return imdb link in results
rows:
selector: "table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]){{ if .Config.freeleech }}:has(img[src=\"images/freeleech.gif\"]){{ else }}{{ end }}{{ if .Config.freeleech }}, table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]):has(img[src=\"images/gold.gif\"]){{ else }}{{ end }}"
selector: "table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]):has(td[width=\"30\"]){{ if .Config.freeleech }}:has(img[src=\"images/freeleech.gif\"]){{ else }}{{ end }}{{ if .Config.freeleech }}, table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]):has(td[width=\"30\"]):has(img[src=\"images/gold.gif\"]){{ else }}{{ end }}"
fields:
category:
@@ -129,8 +129,7 @@ search:
selector: a[href^="download.php?id="]
attribute: href
superuser:
selector: img[src="images/recomend.jpg"]
attribute: title
selector: a[href^="index.php?page=userdetails"]
optional: true
date:
selector: "{{ if .Result.superuser }}td:nth-last-child(10){{ else }}td:nth-last-child(8){{ end }}"