isaacbernat / netflix-to-srt

Rip, extract and convert subtitles to .srt closed captions from .xml/dfxp/ttml and .vtt/WebVTT (e.g. Netflix, YouTube)
MIT License
749 stars 72 forks source link

Update to_srt.py #2

Closed Dgiulian closed 8 years ago

Dgiulian commented 8 years ago

I forked your project and it gave me an runtime error, because the variable start wasn't defined. I think it was only a typo.

isaacbernat commented 8 years ago

Thanks for the comment. I see start and end are only initialised within the loop, which is not guaranteed to be executed (and therefore may give problems in those corner cases). Can you give me some more input so I can reproduce the error myself?