summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/DeadHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 18:07:19 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 18:23:38 +0100
commit45c7759a45e1e9771eec6fc231b523aaa74821a4 (patch)
tree1d1d2aa901c65e215fd1ff71e9a2f150c58ba522 /module/plugins/internal/DeadHoster.py
parent[SimpleHoster] Unquote file name (diff)
downloadpyload-45c7759a45e1e9771eec6fc231b523aaa74821a4.tar.xz
[DeadCrypter][DeadHoster] Improve getInfo
Diffstat (limited to 'module/plugins/internal/DeadHoster.py')
-rw-r--r--module/plugins/internal/DeadHoster.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/DeadHoster.py b/module/plugins/internal/DeadHoster.py
index b85aea3f9..6f3252f70 100644
--- a/module/plugins/internal/DeadHoster.py
+++ b/module/plugins/internal/DeadHoster.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+from urllib import unquote
from urlparse import urlparse
from module.plugins.internal.SimpleHoster import create_getInfo
@@ -9,7 +10,7 @@ from module.plugins.Hoster import Hoster as _Hoster
class DeadHoster(_Hoster):
__name__ = "DeadHoster"
__type__ = "hoster"
- __version__ = "0.13"
+ __version__ = "0.14"
__pattern__ = r'^unmatchable$'
@@ -20,7 +21,7 @@ class DeadHoster(_Hoster):
@classmethod
def getInfo(cls, url="", html=""):
- return {'name': urlparse(url).path.split('/')[-1] or _("Unknown"), 'size': 0, 'status': 1, 'url': url or ""}
+ return {'name': urlparse(unquote(url)).path.split('/')[-1] or _("Unknown"), 'size': 0, 'status': 1, 'url': url}
def setup(self):