Update to ytdl-commit-07af47

[YouTube] Improve fix for ae8ba2c
07af47960f
This commit is contained in:
pukkandan
2023-06-21 08:51:14 +05:30
parent 1619ab3e67
commit 42f2d40b47
3 changed files with 32 additions and 1 deletions

View File

@@ -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):