Repository navigation
fix(platform): get video ingestion through partly walled proxies - #5066
Merged
Merged
Conversation
By 2026-10-28 YouTube answered yt-dlp 2026.07.04's audio downloads with HTTP 403 from every network tried, a residential one without any proxy included, so every video without captions failed at the audio step. 2026.10.26 fetched the same audio from the same networks, with and without the PO-token provider, and its `default` YouTube clients are now tv_samsung and visionos. The version floor follows the pin, so a dev host still on the old binary is warned.
Through OUTBOUND_PROXY_URLS every yt-dlp run of a video (metadata, captions, audio) took the next proxy in turn, and the first bot wall failed the video. With a data-center list YouTube partly walls (69 of 100 Webshare addresses refused on 2026-10-28), a video needed two or three lucky draws in a row. A video now keeps one proxy for all its runs and starts on the proxy that last served a video of its platform. A run the platform turns away (bot check, rate limit, 403) or that its proxy cannot carry runs again through the next proxy that has not failed the video: at most five runs per call, none started once the step's 90 s are spent, which keeps the metadata step, Vimeo embed fallback included, inside the watchdog's five minutes. A lone proxy and VIDEO_INGEST_PROXY_URL are not retried. Each move is logged by list entry, since a provider's fixed-address endpoints often share one host and port. A rotating endpoint that gives every connection a new address cannot carry video. YouTube refused the download (403) when the media connection left from another address than the extraction. The docs (EN/DE/FR) and .env.example now say to list fixed-address endpoints instead. A bare 429 in a video ID no longer reads as a rate limit, and a rerun starts its downloads over (--no-continue) instead of resuming another run's partial file. Spec rule VID-R7 states the behaviour; ytdlp.test.ts holds it with a stand-in yt-dlp.
yannickmonney
enabled auto-merge
October 28, 2026 13:19
yannickmonney
added this pull request to the merge queue
Oct 28, 2026
This was referenced Oct 28, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened
A deployment sent its outbound traffic through a commercial proxy service, configured as one rotating endpoint (
OUTBOUND_PROXY_URLS=http://user-rotate:…@gateway:80), and video ingestion kept failing. I reproduced it against that account with the deployment's own yt-dlp flags (PO-token provider,mweb). Four causes stack up:What changes
MIN_YTDLP_VERSION.YtdlpRoute: one proxy per video, kept for all its runs. The route starts on the proxy that last served a video of the same platform (remembered per process and per platform).VIDEO_INGEST_PROXY_URLis never retried.nextOutboundProxytakes{prefer, skip}without moving the shared cursor forprefer. NewoutboundProxyEntry.--no-continue, so a rerun starts its downloads over instead of resuming another run's partial file.429inside a video ID no longer classifies as a rate limit, which would now send a login-walled Vimeo video through every proxy..env.example, spec rule VID-R7, and the manual-test automation register row are updated too.Verification
core/video_links,lib/netand the platform guards. The new tests drive a stand-in yt-dlp binary through: keep, move, serving proxy, per-platform memory, clearing on a turn-away, a proxy listed twice, the step window across calls, lone proxy and override, the run cap,--no-continue, and the429match. 11 deliberate mutations were each caught by a red test.ytdlp.tswith yt-dlp 2026.10.26 and the bgutil provider:OUTBOUND_PROXY_URLS, 5 of 5 videos completed: metadata, captions (manual and auto) and audio.checkFilesplus the three video lanes: 103/105, identical tomainon the same filter. The two failures are transcription-setup lanes the filter leaves out.lint:links,lint:manual, the docs suite and the domain-spec guard all pass.Operator follow-up (outside this PR)
For video, list a provider's fixed-address endpoints in
OUTBOUND_PROXY_URLSinstead of a rotating endpoint; the docs explain how. Shared data-center plans stay heavily walled, and residential or ISP proxies are refused less often.