byroot / pysrt

Python parser for SubRip (srt) files
GNU General Public License v3.0
451 stars 69 forks source link

In-place mode does not write the entire file #66

Open glebm opened 7 years ago

glebm commented 7 years ago

For large-enough files (100KiB+), the in-place output always gets cut off.

I'm guessing the buffer does not get flushed / the file handle does not get closed?

byroot commented 7 years ago

That's very weird. Can you provide a repro snippet please?

glebm commented 7 years ago

Sure:

http://www.opensubtitles.org/en/subtitles/5479811/stardust-ru

srt -i rate 23.976 25 file.srt

If you can't reproduce, you might need to convert the file to utf8 first.