amend #5372 to prevent other symbols breaking magnet URL (#6292)

* Fix Issue #5372 without urldecode
By bypassing the decode, apostrophes can now be sent to download clients successfully.
This commit is contained in:
aljohn92 2019-11-05 18:40:37 +00:00 committed by garfield69
parent 847ee211fc
commit 28affde571
5 changed files with 13 additions and 24 deletions

View File

@ -123,11 +123,9 @@
download:
# the .torrent url is on the on the details page
selector: ul li a[href^="{{ .Config.downloadlink }}"]
# temp fix for #5372
filters:
- name: urldecode
- name: replace
args: [" ⭐", ""]
filters:
- name: replace # temp fix for #5372
args: ["%E2%AD%90", ""]
search:
paths:

View File

@ -957,11 +957,9 @@
download:
selector: td a[href^="magnet:?xt="]
attribute: href
# temp fix for #5372
filters:
- name: urldecode
- name: replace
args: [" ⭐", ""]
filters:
- name: replace # temp fix for #5372
args: ["%E2%AD%90", ""]
date:
selector: td:nth-last-of-type(5)
filters:

View File

@ -47,11 +47,8 @@
filters:
- name: querystring
args: url
- name: urldecode
# temp fix for #5372
- name: replace
args: [" ⭐", ""]
- name: replace # temp fix for #5372
args: ["%E2%AD%90", ""]
search:
paths:
- path: torrents

View File

@ -64,11 +64,9 @@
magnet:
selector: td:nth-child(1) div div a[data-nop=""]
attribute: href
# temp fix for #5372
filters:
- name: urldecode
- name: replace
args: [" ⭐", ""]
filters:
- name: replace # temp fix for #5372
args: ["%E2%AD%90", ""]
size:
selector: td:nth-child(2)
date:

View File

@ -55,10 +55,8 @@
filters:
- name: querystring
args: url
- name: urldecode
# temp fix for #5372
- name: replace
args: [" ⭐", ""]
- name: replace # temp fix for #5372
args: ["%E2%AD%90", ""]
size:
selector: td:nth-child(2)
filters: