thesceneplace: Use filename from download link when possible (#13813)

This commit is contained in:
Bogdan 2022-12-28 05:25:49 +02:00 committed by GitHub
parent 07081bcf42
commit 9490a8382f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

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