Files
go-astisub/testdata/missing-sequence-in.srt
Samuel StaufferandGitHub fae4bff300 Support parsing srt without sequence numbers. (#93)
* Support parsing srt without sequence numbers.

There are many srt in the wild that are missing sequence numbers. It's
easy to detect by looking for an empty line vs index/sequence in the
line before the time. In my analysis of many srt I have not seen ones
missing the empty line, but it's feasible that these also exist. This
shouldn't affect parsing otherwise, however, and in my experience the
missing sequence number is common enough that it's useful to handle.

* Remove duplicate testdata file and use existing.
2023-10-02 18:12:35 +02:00

21 lines
354 B
Plaintext

00:01:39 --> 00:01:41,04
(deep rumbling)
00:02:04,08 --> 00:02:07,12 X1:40 X2:600 Y1:20 Y2:50
MAN:
How did we end up here?
00:02:12.16 --> 00:02:15.20
This place is horrible.
00:02:20.24 --> 00:02:22.28
Smells like balls.
00:02:28,32 --> 00:02:31,36
We don't belong
in this shithole.
00:02:31,40 --> 00:02:33,44
(computer playing
electronic melody)