go-astisub icon indicating copy to clipboard operation
go-astisub copied to clipboard

srtTimeBoundariesSeparator will lead to incorrect results

Open eager7 opened this issue 3 years ago • 1 comments

const ( srtTimeBoundariesSeparator = " --> " )

when the srt content is like:

1
00:08:29,079 -->00:08:30,119
hello

because there lose a space, this line will not be indefiy, output string will be nothing.

i hope return a error for this

eager7 avatar Jul 21 '21 08:07 eager7

As the .srt you're mentionning is not valid, the only thing this lib could do is return an error. However the way things are done, it's not trivial to do it while changing the least amount of code. I'll add it to this project's todo but won't have time to work on it anytime soon

asticode avatar Jul 21 '21 12:07 asticode