Skip to content

Show yt-dlp's real error in worker logs and update yt-dlp - #33

Merged
AlexanderHott merged 3 commits into
mainfrom
fix-media-download
Nov 24, 2026
Merged

AlexanderHott merged 3 commits into
mainfrom
fix-media-download

Conversation

@AlexanderHott

@AlexanderHott AlexanderHott commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Downloading audio from YouTube failed with "The source is unavailable, unsupported, or requires authentication." The worker logs only had that same message, because the adapter replaced yt-dlp's stderr with it and threw the original away. Running yt-dlp by hand inside the deployed worker showed the real error: YouTube's "Sign in to confirm you're not a bot" check is blocking the server's IP.

This PR doesn't fix the block. That needs cookies or a residential proxy, which is a separate decision. It makes the next failure diagnosable:

  • Worker logs: the end of yt-dlp's stderr is now kept as the error's cause. The worker already logs the whole error, so the real yt-dlp line shows up there. Users and stored rows still get only the message.
  • yt-dlp 2026.08.19 → 2026.11.23, with both release checksums. 2026.11.23 is still blocked on the server's IP; I checked that inside the deployed container.
  • Two mobile fixes that missed Make bg usable on phones and stop hotkey labels flipping after load #32:
    • The auth pages use min-h-dvh, so the sign-up form's top no longer gets cut off on a short landscape screen.
    • The download settings fieldset is one column and min-w-0, so it no longer spills out of its card at 375px.

Proof:

  • A process that prints the bot-check error ends up with it in the logged error's cause.
  • tsc and vp check are clean.
  • Media-worker image: the checksum-verified downloads succeed, and the bundled yt-dlp reports 2026.11.23 and fetches the video's metadata.
  • Layout: I measured both mobile fixes in the browser at phone sizes, comparing the old and new classes.

Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code (T3 Code), reviewed by GPT-6.2 Sol.

🤖 Generated with Claude Code

AlexanderHott and others added 3 commits November 23, 2026 20:11
A YouTube download on the server failed with only "The source is
unavailable, unsupported, or requires authentication." The adapter maps
yt-dlp's stderr to that generic message and dropped the original, so the
worker logs could not show that YouTube's bot check had blocked the
server's IP.

The stderr tail now rides along as the error's cause. The worker already
logs the whole error, so the yt-dlp line shows up there. Stored rows and
users still get only the message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a short landscape screen the sign-up form was taller than its
h-full wrapper and its top was cut off above the scroll area. The
download settings fieldset kept its min-content width and spilled out of
its card at 375px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlexanderHott
AlexanderHott merged commit 6f8abc2 into main Nov 24, 2026
1 check passed
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