MicrosoftTranslator / DocumentTranslator-Legacy

Microsoft Document Translator (Archive) - Replaced by the MicrosoftTranslator/DocumentTranslation project in this repository.
Other
409 stars 153 forks source link

SRT/VTT translation returns error #152

Open mienoy opened 3 years ago

mienoy commented 3 years ago

Hello! When I try to translate .srt or .vtt file, DocumentTranslator always returns error: Error while processing document: The index is outside the bounds of the array. (Error message is my translation, it may not correct) Is this caused any format issues in .srt or .vtt files? Tested with v2.9.2. File was saved by notepad with all save options, and with Sakura editor.

I cannot upload sample file as is. so that I zipped and attached. Sample is following: 00:00:10.905 --> 00:00:12.918 This is translation test

00:00:12.919 --> 00:00:15.611 for Document Translator. This is first

00:00:15.612 --> 00:00:18.564 Test.

test1.zip

Thank you! Mieno

chriswendt1 commented 3 years ago

Thanks for the report. I'll try to fix this in the DocumentTranslation project.