Update js_runtimes configuration format for yt-dlp
Some checks failed
Build Windows Installer / build-windows (push) Has been cancelled

This commit is contained in:
2026-05-08 02:34:24 +02:00
parent 5588a2289b
commit 2b07fe4e14

View File

@@ -331,7 +331,7 @@ def apply_ytdlp_cookie_options(
if browser_spec: if browser_spec:
opts["cookiesfrombrowser"] = browser_spec opts["cookiesfrombrowser"] = browser_spec
if use_js_challenge_fallback: if use_js_challenge_fallback:
opts["js_runtimes"] = ["deno", "node"] opts["js_runtimes"] = {"deno": {}, "node": {}}
opts["remote_components"] = ["ejs:github"] opts["remote_components"] = ["ejs:github"]
return opts return opts