aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/jsinterp.py
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2025-03-21 21:58:10 +0100
committerGitHub <noreply@github.com>2025-03-21 20:58:10 +0000
commit9b868518a15599f3d7ef5a1c730dda164c30da9b (patch)
tree468831c44bc9408f467d0417e9125d91a2f0c22a /yt_dlp/jsinterp.py
parent2ee3a0aff9be2be3bea60640d3d8a0febaf0acb6 (diff)
[ie/youtube] Fix nsig and signature extraction for player `643afba4` (#12684)
Closes #12677, Closes #12682 Authored by: seproDev, bashonly Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Diffstat (limited to 'yt_dlp/jsinterp.py')
-rw-r--r--yt_dlp/jsinterp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/jsinterp.py b/yt_dlp/jsinterp.py
index ac0629715..936f18bff 100644
--- a/yt_dlp/jsinterp.py
+++ b/yt_dlp/jsinterp.py
@@ -890,9 +890,9 @@ class JSInterpreter:
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):
+ def extract_function(self, funcname, *global_stack):
return function_with_repr(
- self.extract_function_from_code(*self.extract_function_code(funcname)),
+ self.extract_function_from_code(*self.extract_function_code(funcname), *global_stack),
f'F<{funcname}>')
def extract_function_from_code(self, argnames, code, *global_stack):