Closed jhdeov closed 2 years ago
Thanks @jhdeov for filing the detailed report
Issue is with parse_transcription()
function in textgrid_convert/srtParser.py:29.
Hi @jhdeov I fixed this issue, see PR #46
Can you try pip install textgrid-convert==0.4.3
and see if things work now? Thanks!
@patrickschu I have general pip problems so I relied on just the github source code. It looks like release 4.3 isn't online yet? But if the files/snippets from the above comments work on your side, then I believe it :)
Hi @jhdeov Ah I see - yes I used your sample files in the unit tests
If the SRT has the prose be multiple lines, the SRTparser fails and misinterprets the time stamp. For example, an SRT with:
The extra line "Hamazkayin" Causes the parser to read the number 141 as a timestamp.
start, end = timestamps.split(time_stamp_sep) ValueError: not enough values to unpack (expected 2, got 1)
I have to manually change the newlines into a single line.