From f422efeec45abb68462c849bd44219fa6fdd74a8 Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Thu, 6 Oct 2011 09:37:09 +0200 Subject: mediafire.com plugin fix --- module/plugins/hoster/MediafireCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py index 9e18527cf..8a39d364e 100644 --- a/module/plugins/hoster/MediafireCom.py +++ b/module/plugins/hoster/MediafireCom.py @@ -47,13 +47,13 @@ def getInfo(urls): yield result def replace_eval(js_expr): - return js_expr.replace(r"\'", r"'").replace(r'eval("', '') + return js_expr.replace(r'eval("', '').replace(r"\'", r"'").replace(r'\"', r'"') class MediafireCom(Hoster): __name__ = "MediafireCom" __type__ = "hoster" __pattern__ = r"http://(?:\w*\.)*mediafire\.com/.*" - __version__ = "0.3" + __version__ = "0.4" __description__ = """Mediafire.com plugin - free only""" __author_name__ = ("zoidberg") @@ -67,7 +67,7 @@ class MediafireCom(Hoster): PAGE2_VARS_PATTERN = r'' - PAGE2_LINK_PATTERN = r"(\w+='';\w+=unescape.*?)eval\(\w+\);(\\\" href=[^\>]*>)?" + PAGE2_LINK_PATTERN = r"(\w+='';\w+=unescape.*?)eval\(\w+\);(.{0,10}href=[^>]*>)?" FINAL_LINK_PATTERN = r'parent.document.getElementById\(\'(\w{32})\'\).*(http://[^"]+)" \+(\w+)\+ "([^"]+)">' FILE_NAME_PATTERN = r'' -- cgit v1.2.3