Repository navigation
feat: SRT/VTT export, title-based filenames, typed fetch errors - #5
Merged
Merged
Conversation
Cloud bots were showing an English-only caption lie for IpBlocked. Say the server was blocked, and document that residential proxy env is required on VPS hosts. Co-authored-by: Cursor <[email protected]>
- Export SRT and VTT subtitles (web, API /convert, Telegram); overlapping auto-caption cues are clipped so players don't stack lines - Name downloads after the video title (sanitised, RFC 5987 for non-ASCII) - Replace message-substring error classification with TranscriptFetchError so Vimeo failures stop surfacing as generic 500s - Telegram: run formatting and file generation off the event loop so one PDF build no longer stalls every user; regenerate files removed by TTL - Prune expired transcript cache entries in the cleanup loop and cron - Honour PREVIEW_CHARS in the extract response - Fix README bot-preferences claim and a homepage JSON export claim Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Sep 28, 2026
This branch was successfully deployed
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.
Summary
/convert) and Telegram. Built from the caption segments, with overlapping auto-caption cues clipped so players don't stack lines.Me at the zoo.pdf). Path separators and reserved characters are stripped, and non-ASCII titles get an ASCII fallback plus an RFC 5987filename*.TranscriptFetchErrorreplaces matching on message substrings in the API and bot. Vimeo failures (private video, no captions) now return a specific 400 instead of a generic 500. Unexpected errors are logged with a stack trace.app.cleanup. Before this, only reads checked the TTL, so the folder grew without limit.PREVIEW_CHARSis now honoured by/extractinstead of a hardcoded 1500.Each extract now writes two small sidecar files,
<id>.segments.jsonand<id>.meta.json./downloadrejects them (tested), and the normal file TTL cleans them up.Also includes 23c85e1 (the YouTube IP-block error message), which was on an unmerged branch this work builds on.
Test plan
python -m unittest discover -s tests: 56 pass (18 new)tsc --noEmitonweb/400 TRANSCRIPT_NOT_AVAILABLE "Video is unavailable."