mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torrentz2: fix #2770 urlencode display name for magnet
This commit is contained in:
@@ -94,6 +94,11 @@
|
|||||||
args: ".torrent"
|
args: ".torrent"
|
||||||
download:
|
download:
|
||||||
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{else}}{{end}}"
|
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{else}}{{end}}"
|
||||||
|
magfile:
|
||||||
|
text: "{{ .Result.title }}"
|
||||||
|
filters:
|
||||||
|
- name: validfilename
|
||||||
|
- name: urlencode
|
||||||
magnet:
|
magnet:
|
||||||
selector: dt a
|
selector: dt a
|
||||||
attribute: href
|
attribute: href
|
||||||
@@ -103,7 +108,7 @@
|
|||||||
- name: prepend
|
- name: prepend
|
||||||
args: "magnet:?xt=urn:btih:"
|
args: "magnet:?xt=urn:btih:"
|
||||||
- name: append
|
- name: append
|
||||||
args: "&dn={{ .Result.title }}.torrent"
|
args: "&dn={{ .Result.magfile }}.torrent"
|
||||||
category:
|
category:
|
||||||
optional: true
|
optional: true
|
||||||
selector: dt
|
selector: dt
|
||||||
|
Reference in New Issue
Block a user