Update to ytdl-commit-07af47
[YouTube] Improve fix for ae8ba2c
07af47960f
This commit is contained in:
parent
1619ab3e67
commit
42f2d40b47
3 changed files with 32 additions and 1 deletions
|
|
@ -812,9 +812,9 @@ class JSInterpreter:
|
|||
\((?P<args>[^)]*)\)\s*
|
||||
(?P<code>{.+})''' % {'name': re.escape(funcname)},
|
||||
self.code)
|
||||
code, _ = self._separate_at_paren(func_m.group('code'))
|
||||
if func_m is None:
|
||||
raise self.Exception(f'Could not find JS function "{funcname}"')
|
||||
code, _ = self._separate_at_paren(func_m.group('code'))
|
||||
return [x.strip() for x in func_m.group('args').split(',')], code
|
||||
|
||||
def extract_function(self, funcname):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue