Skip to content

fix: read an SRT file that starts with blank lines - #473

Open
RavSinghChandan wants to merge 1 commit into
pbs:mainfrom
RavSinghChandan:srt-leading-blank-lines
Open

RavSinghChandan wants to merge 1 commit into
pbs:mainfrom
RavSinghChandan:srt-leading-blank-lines

Conversation

@RavSinghChandan

Copy link
Copy Markdown

An .srt file that begins with one or more blank lines raises
CaptionReadNoCaptions ("empty caption file"), although the cues that
follow are valid. detect() and read() now skip leading blank lines.

Tests cover three variants; they fail without the change.

AI tools: Claude Code (Claude Sonnet 5.5) helped write the code, tests and this description.

@RavSinghChandan
RavSinghChandan requested a review from a team as a code owner December 4, 2026 13:25
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