diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2011-10-06 09:37:09 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2011-10-06 09:37:09 +0200 |
commit | f422efeec45abb68462c849bd44219fa6fdd74a8 (patch) | |
tree | 29cf3f878a55dfeaf027cc220217f6ab2d56fe1e /module/plugins | |
parent | little fix for simple_json + js engine (diff) | |
download | pyload-f422efeec45abb68462c849bd44219fa6fdd74a8.tar.xz |
mediafire.com plugin fix
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 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'<script language="Javascript"><!--\s*(var.*?unescape.*?)eval\(' PAGE2_DZ_PATTERN = r'break;case 15:(.*)</script>' - 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'<META NAME="description" CONTENT="([^"]+)"/>' |