thesceneplace: edit field names

This commit is contained in:
ilike2burnthing
2023-01-03 20:18:07 +00:00
committed by GitHub
parent 279caca6af
commit 8ffe670b29

View File

@@ -110,7 +110,7 @@ search:
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 }}" 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: fields:
_torrent_name: title_torrent:
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
filters: filters:
@@ -122,9 +122,8 @@ search:
args: ["'", "'"] args: ["'", "'"]
- name: re_replace - name: re_replace
args: ["(?i)\\.torrent$", ""] args: ["(?i)\\.torrent$", ""]
_name: title_text:
selector: a[href^="index.php?page=torrent-details&id="] selector: a[href^="index.php?page=torrent-details&id="]
category: category:
selector: a[href^="index.php?page=torrents&category="] selector: a[href^="index.php?page=torrents&category="]
attribute: href attribute: href
@@ -132,7 +131,7 @@ search:
- name: querystring - name: querystring
args: category args: category
title: title:
text: "{{ if .Result._torrent_name }}{{ .Result._torrent_name }}{{ else }}{{ .Result._name }}{{ end }}" text: "{{ if .Result.title_torrent }}{{ .Result.title_torrent }}{{ else }}{{ .Result.title_text }}{{ end }}"
poster: poster:
selector: a[href^="index.php?page=torrent-details&id="] selector: a[href^="index.php?page=torrent-details&id="]
attribute: onmouseover attribute: onmouseover