diff options
author | Ducatel David <Ducatel@users.noreply.github.com> | 2014-06-03 20:47:13 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-06-03 20:47:13 +0200 |
commit | a0020713ffe5aa7544faf64617e4a0bc1d9b4bd1 (patch) | |
tree | 5ef2009d82206af686a9fdc5c86ed0b39d7df5e4 /module | |
parent | Fixed #614 (diff) | |
download | pyload-a0020713ffe5aa7544faf64617e4a0bc1d9b4bd1.tar.xz |
[MegaDebridEu] getFilename enhancement
Merges #626
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/MegaDebridEu.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/MegaDebridEu.py b/module/plugins/hoster/MegaDebridEu.py index 73c553896..46eb0eb11 100644 --- a/module/plugins/hoster/MegaDebridEu.py +++ b/module/plugins/hoster/MegaDebridEu.py @@ -15,7 +15,7 @@ ############################################################################ import re -from urllib import unquote +from urllib import unquote_plus from module.plugins.Hoster import Hoster from module.common.json_layer import json_loads @@ -23,7 +23,7 @@ from module.common.json_layer import json_loads class MegaDebridEu(Hoster): __name__ = "MegaDebridEu" - __version__ = "0.2" + __version__ = "0.3" __type__ = "hoster" __pattern__ = r'^https?://(?:w{3}\d+\.mega-debrid.eu|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/download/file/[^/]+/.+$' __description__ = """mega-debrid.eu hoster plugin""" @@ -35,7 +35,7 @@ class MegaDebridEu(Hoster): def getFilename(self, url): try: - return unquote(url.rsplit("/", 1)[1]) + return unquote_plus(url.rsplit("/", 1)[1]) except IndexError: return "" |