1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-12 12:35:15 +00:00

[jsinterp] Fix extract_object (#13580)

Fixes sig extraction for YouTube player `e12fbea4`

Authored by: seproDev
This commit is contained in:
sepro
2025-06-30 15:50:33 +02:00
committed by GitHub
parent 1b88384634
commit 958153a226
3 changed files with 10 additions and 1 deletions

View File

@@ -857,7 +857,7 @@ class JSInterpreter:
obj = {}
obj_m = re.search(
r'''(?x)
(?<!\.)%s\s*=\s*{\s*
(?<![a-zA-Z$0-9.])%s\s*=\s*{\s*
(?P<fields>(%s\s*:\s*function\s*\(.*?\)\s*{.*?}(?:,\s*)?)*)
}\s*;
''' % (re.escape(objname), _FUNC_NAME_RE),