Skip to content

Carousels: stop streaming a yt-dlp error paragraph per photo - #30

Merged
miridius merged 1 commit into
mainfrom
worktree-instagram-photo-carousel-2
Aug 6, 2026
Merged

Carousels: stop streaming a yt-dlp error paragraph per photo#30
miridius merged 1 commit into
mainfrom
worktree-instagram-photo-carousel-2

Conversation

@miridius

@miridius miridius commented Aug 5, 2026

Copy link
Copy Markdown
Owner

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 /verbose still shows every line. A post whose every item is a photo now reports There 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

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
miridius force-pushed the worktree-instagram-photo-carousel-2 branch from 11f030c to 09cede2 Compare August 5, 2026 21:42
@miridius
miridius merged commit 3b3f15d into main Aug 6, 2026
3 checks passed
@miridius
miridius deleted the worktree-instagram-photo-carousel-2 branch August 6, 2026 21:21
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.

Carousel photo items fill the private-chat log with yt-dlp error paragraphs

1 participant