mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 12:07:12 +01:00
parent
366b759a60
commit
d1aeacd9bf
@ -213,7 +213,7 @@ def interpret_expression(self, expr, local_vars, allow_recursion):
|
|||||||
def extract_object(self, objname):
|
def extract_object(self, objname):
|
||||||
obj = {}
|
obj = {}
|
||||||
obj_m = re.search(
|
obj_m = re.search(
|
||||||
(r'(?:var\s+)?%s\s*=\s*\{' % re.escape(objname)) +
|
(r'(?<!this\.)%s\s*=\s*\{' % re.escape(objname)) +
|
||||||
r'\s*(?P<fields>([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\}(?:,\s*)?)*)' +
|
r'\s*(?P<fields>([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\}(?:,\s*)?)*)' +
|
||||||
r'\}\s*;',
|
r'\}\s*;',
|
||||||
self.code)
|
self.code)
|
||||||
|
Loading…
Reference in New Issue
Block a user