mirror of
https://github.com/zoriya/go-astisub.git
synced 2026-08-16 02:33:21 +00:00
* 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.
21 lines
354 B
Plaintext
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)
|