Updated the ytmusic cookies situation

This commit is contained in:
Connor Johnstone
2026-03-20 13:38:49 -04:00
parent 0e5195e64c
commit c12dba886e
2 changed files with 375 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ impl YtDlpBackend {
let mut cmd = Command::new("yt-dlp");
cmd.args(args).stdout(Stdio::piped()).stderr(Stdio::piped());
// Allow yt-dlp to fetch updated JS challenge solver scripts
cmd.args(["--remote-components", "ejs:github"]);
// Add cookies if configured
if let Some(ref cookies) = self.cookies_path {
cmd.arg("--cookies").arg(cookies);