emk/subtitles-rs

Unhelpful Error message

Closed this issue · 2 comments

I'm trying to build a csv from a youtube video with transcripts. However I get this error message.

substudy export csv Clôture_de_TEDxParis_2015_Chris_Esquerre_TEDxParis.mp4 XKqlIjZ690_0_fr.srt 9XKqlIjZ690_0_en.srt
error at 140:1: expected one of \n, \r, [0-9]

I understand that the problem is it is expecting a carrage return or newline, but in which file? And is the 140: the line number or the srt block number? (both of which look ok, btw)

9XKqlIjZ690_0_en.srt.txt
9XKqlIjZ690_0_fr.srt.txt

emk commented

It was an extra carriage return on the file I got from YouTube.