summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/internal/DeadHoster.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/internal/DeadHoster.py')
-rw-r--r--pyload/plugins/internal/DeadHoster.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyload/plugins/internal/DeadHoster.py b/pyload/plugins/internal/DeadHoster.py
index a7e5093d3..f066883c6 100644
--- a/pyload/plugins/internal/DeadHoster.py
+++ b/pyload/plugins/internal/DeadHoster.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+from urllib import unquote
from urlparse import urlparse
from pyload.plugins.internal.Hoster import Hoster as _Hoster
@@ -9,7 +10,7 @@ from pyload.plugins.internal.SimpleHoster import create_getInfo
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):