summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-10-06 09:37:09 +0200
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-10-06 09:37:09 +0200
commitf422efeec45abb68462c849bd44219fa6fdd74a8 (patch)
tree29cf3f878a55dfeaf027cc220217f6ab2d56fe1e /module
parentlittle fix for simple_json + js engine (diff)
downloadpyload-f422efeec45abb68462c849bd44219fa6fdd74a8.tar.xz
mediafire.com plugin fix
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/MediafireCom.py6
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="([^"]+)"/>'