Fix radio downloads: ship EJS solver scripts and allow runtime refresh
yt-dlp now solves YouTube JS challenges via external EJS scripts (yt-dlp-ejs package). A bare yt-dlp from PyPI does not include them, and remote fetching is disabled by default, so images built after the EJS migration download nothing and fail with HTTP 403 while metadata and playlists keep working. Pin yt-dlp[default] so yt-dlp-ejs ships in the image, and pass --remote-components ejs:github so solver scripts refresh at runtime when YouTube rotates challenges.
This commit is contained in:
1 parent
026698cba2
commit
6c106032bc
2 files changed
+7
-1
No files matched your search
@@ -568,6 +568,10 @@ async def process_radio_track(video_link, video_id, title):
|
||||
"jpg",
|
||||
"--js-runtimes",
|
||||
"quickjs",
|
||||
# Refresh EJS challenge-solver scripts from GitHub at runtime so a
|
||||
# stale image doesn't break downloads when YouTube rotates challenges.
|
||||
"--remote-components",
|
||||
"ejs:github",
|
||||
"--output",
|
||||
f"{base_filepath}.%(ext)s",
|
||||
video_link,
|
||||
|
||||
Reference in new issue
Block a user