Carousels: stop streaming a yt-dlp error paragraph per photo - #30
Merged
Conversation
A private chat asking for an Instagram carousel got one yt-dlp ERROR paragraph per photo item, each carrying the issue-tracker boilerplate, even for posts the bot went on to deliver successfully. The items are a verdict on the photo, not an answer to what the chat asked for, so they are filtered out of the streamed log. /verbose is a request for yt-dlp's actual output and still shows them. Filtering is per line, so the display holds a line the chunk boundary cut until its other half arrives, bounded like the retained stderr beside it so a stream that never sends a newline cannot grow without limit. A post whose every item is a photo now reports itself rather than the last photo's id, matching what a single photo post already says. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K7QTJrxfmVdrARFcmmKtXN
miridius
force-pushed
the
worktree-instagram-photo-carousel-2
branch
from
August 5, 2026 21:42
11f030c to
09cede2
Compare
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.
Problem
An Instagram carousel in a private chat answered with one yt-dlp ERROR paragraph per photo in the post, issue-tracker boilerplate and all, even when the post's videos arrived fine. A post of only photos then closed on
💥 Download failed: Dbi3QbCCcTd: No video formats found!, naming one photo's id.Fix
Photo-item errors no longer reach the log. Everything else yt-dlp says still streams, and
/verbosestill shows every line. A post whose every item is a photo now reportsThere is no video in this post. Classification still reads the raw stderr, so groups stay silent for a video-less post exactly as before.Closes #29.
Written by Claude Opus 5