diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-10 12:00:39 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-10 12:00:39 +0200 |
commit | eb2b6dace9a18b48ca340b02692bd377b213b826 (patch) | |
tree | 3f4f8b9f32b4af9d233fab86816519a7a472e306 /module/plugins | |
parent | fix mediafire.com plugin (diff) | |
download | pyload-eb2b6dace9a18b48ca340b02692bd377b213b826.tar.xz |
mediafire fix, decode=True usualy fix decoding issues
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/MediafireCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py index 4681ebdc6..e06447c7c 100644 --- a/module/plugins/hoster/MediafireCom.py +++ b/module/plugins/hoster/MediafireCom.py @@ -53,7 +53,7 @@ class MediafireCom(Hoster): __name__ = "MediafireCom" __type__ = "hoster" __pattern__ = r"http://(?:\w*\.)*mediafire\.com/.*" - __version__ = "0.6" + __version__ = "0.61" __description__ = """Mediafire.com plugin - free only""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") @@ -79,7 +79,7 @@ class MediafireCom(Hoster): self.multiDL = False def process(self, pyfile): - self.html = self.load(pyfile.url) + self.html = self.load(pyfile.url, decode=True) self.getFileInfo(pyfile) self.handleFree() @@ -88,7 +88,7 @@ class MediafireCom(Hoster): found = re.search(self.FILE_NAME_PATTERN, self.html) if not found: self.fail("Parse error (file name)") - pyfile.name = unicode(found.group(1), 'UTF-8') + pyfile.name = found.group(1) found = re.search(self.FILE_SIZE_PATTERN, self.html) if found: |