Skip to content

fix(download): use web/android clients — default ones downgrade to storyboards#106

Merged
windoze95 merged 1 commit into
mainfrom
fix/download-player-client-not-storyboards
Jun 29, 2026
Merged

fix(download): use web/android clients — default ones downgrade to storyboards#106
windoze95 merged 1 commit into
mainfrom
fix/download-player-client-not-storyboards

Conversation

@windoze95

Copy link
Copy Markdown
Owner

The format dump from #105 was conclusive — for an age-restricted video, the default yt-dlp clients (tv, web_creator) get downgraded and return only storyboard images (sb0–sb3), no video/audio:

[youtube] vyKU6Pd5KAA: Downloading tv downgraded player API JSON
[info] Available formats: sb3/sb2/sb1/sb0   ← storyboards only

Cookies pass the age gate and the po_token is fetched — but those clients still won't yield media. The web/android clients return the real (SABR adaptive) formats (that's why instant-stream got "format not available" rather than storyboards).

The download path passed no player_client (so it used the default clients). Fix: splice in the same player_client_args() instant-stream already uses, on download_video, download_preview, and the diagnostic -F. Age-restricted previews/downloads now see the real adaptive formats and mux them.

321 passed, ruff clean.

🤖 Generated with Claude Code

…oryboards

The format dump (from #105) was conclusive: for an age-restricted video the
default yt-dlp clients (tv, web_creator) get "downgraded" and return ONLY
storyboard images (sb0-sb3) — no video/audio — so the preview/HQ download fail
"Requested format is not available" even though cookies pass the age gate and the
po_token is fetched. The web/android clients DO return the real (SABR adaptive)
formats — which is why instant-stream got "format not available" (real formats,
no progressive) rather than storyboards.

The download path didn't pass player_client at all (used the default clients);
splice in the same player_client_args() instant-stream already uses, on both
download_video and download_preview (and the diagnostic -F). Age-restricted
previews/downloads now see the real adaptive formats and can mux them.

321 passed; ruff clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@windoze95 windoze95 merged commit 09ee7ad into main Jun 29, 2026
5 checks passed
@windoze95 windoze95 deleted the fix/download-player-client-not-storyboards branch June 29, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant