mirror of https://github.com/Jackett/Jackett
thesceneplace: Use filename from download link when possible (#13813)
This commit is contained in:
parent
07081bcf42
commit
9490a8382f
|
@ -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 }}"
|
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:
|
||||||
|
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:
|
category:
|
||||||
selector: a[href^="index.php?page=torrents&category="]
|
selector: a[href^="index.php?page=torrents&category="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
@ -117,7 +130,7 @@ search:
|
||||||
- name: querystring
|
- name: querystring
|
||||||
args: category
|
args: category
|
||||||
title:
|
title:
|
||||||
selector: a[href^="index.php?page=torrent-details&id="]
|
text: "{{ if .Result._torrent_name }}{{ .Result._torrent_name }}{{ else }}{{ .Result._name }}{{ 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
|
||||||
|
|
Loading…
Reference in New Issue