[ie/youtube] Allow a bit more recursion

Authored by: bashonly
pull/12761/head
bashonly 4 months ago
parent 57f4350fe4
commit 538f7a7772
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

@ -2236,7 +2236,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
_, varname, array_code = self._extract_player_js_global_var(jscode, player_url)
jsi = JSInterpreter(array_code)
interpret_global_var = self._cached(jsi.interpret_expression, 'js global list', player_url)
return varname, interpret_global_var(array_code, {}, allow_recursion=1)
return varname, interpret_global_var(array_code, {}, allow_recursion=10)
def _fixup_n_function_code(self, argnames, nsig_code, jscode, player_url):
varcode, varname, _ = self._extract_player_js_global_var(jscode, player_url)

Loading…
Cancel
Save