summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleCrypter.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-11 00:36:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-11 00:36:45 +0100
commit395ac7930ef4e1598186a7a0636d3f245b7e5134 (patch)
treec0951235ffbcf0138a7d7c61a214cb2d42f7e8bb /module/plugins/internal/SimpleCrypter.py
parent[Captcha9kw] Some fixes (thx Nippey) (diff)
downloadpyload-395ac7930ef4e1598186a7a0636d3f245b7e5134.tar.xz
Fix url to name conversion in api and simple plugins
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r--module/plugins/internal/SimpleCrypter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 69cbb7051..0e43496c4 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -129,7 +129,7 @@ class SimpleCrypter(Crypter):
if name and name != url:
self.pyfile.name = name
else:
- self.pyfile.name = self.info['name'] = html_unescape(urlparse(url).path.split("/")[-1])
+ self.pyfile.name = self.info['name'] = urlparse(html_unescape(name)).path.split("/")[-1]
if status is 1:
self.offline()