Skip to content

Commit ff60d21

Browse files
committed
fix: exclude broken android_sdkless player client to prevent 403 errors
- Add --extractor-args youtube:player_client=default,-android_sdkless to getBaseCommandArgs() for scheduled channel downloads - Add same extractor arg to getBaseCommandArgsForManualDownload() for manual video downloads - Fixes yt-dlp issue #15712 where YouTube renders android_sdkless client unusable, causing HTTP 403 errors when requesting MP4 formats
1 parent 6213922 commit ff60d21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/modules/download/ytdlpCommandBuilder.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ class YtdlpCommandBuilder {
413413
'--write-info-json',
414414
'--no-write-playlist-metafiles',
415415
'--extractor-args', 'youtubetab:tab=videos;sort=dd',
416+
'--extractor-args', 'youtube:player_client=default,-android_sdkless',
416417
'--match-filter', matchFilter,
417418
'-o', outputPath,
418419
'--datebefore', 'now',
@@ -486,6 +487,7 @@ class YtdlpCommandBuilder {
486487
'--write-info-json',
487488
'--no-write-playlist-metafiles',
488489
'--extractor-args', 'youtubetab:tab=videos;sort=dd',
490+
'--extractor-args', 'youtube:player_client=default,-android_sdkless',
489491
'--match-filter', 'availability!=subscriber_only & !is_live & live_status!=is_upcoming',
490492
'-o', outputPath,
491493
'--datebefore', 'now',

0 commit comments

Comments
 (0)