diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-07-01 18:06:44 +0200 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-07-01 18:06:44 +0200 |
commit | 9ec87b678144c97640458903ba3101a12f3e826a (patch) | |
tree | 6c86225d84745a8ef0cf7c6fd66916712864e237 | |
parent | [CircleCaptcha] Revert (diff) | |
download | pyload-9ec87b678144c97640458903ba3101a12f3e826a.tar.xz |
[YoutubeCom] fix #2531
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index b48af028e..1bfb88a2a 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -40,7 +40,7 @@ class BIGHTTPRequest(HTTPRequest): class YoutubeCom(Hoster): __name__ = "YoutubeCom" __type__ = "hoster" - __version__ = "0.53" + __version__ = "0.54" __status__ = "testing" __pattern__ = r'https?://(?:[^/]*\.)?(youtu\.be/|youtube\.com/watch\?(?:.*&)?v=)\w+' @@ -492,7 +492,7 @@ class JSInterpreter(object): return obj def extract_function(self, function_name): - func_m = re.search(r'(?x)(?:function\s+%s|[{;,]%s\s*=\s*function|var\s+%s\s*=\s*function)\s*\((?P<args>[^)]*)\)\s*\{(?P<code>[^}]+)\}' + func_m = re.search(r'(?x)(?:function\s+%s|[{;,]\s*%s\s*=\s*function|var\s+%s\s*=\s*function)\s*\((?P<args>[^)]*)\)\s*\{(?P<code>[^}]+)\}' % (re.escape(function_name), re.escape(function_name), re.escape(function_name)), self.code) if func_m is None: raise JSInterpreterError('Could not find JS function %r' % function_name) |