pysrt icon indicating copy to clipboard operation
pysrt copied to clipboard

In-place mode does not write the entire file

Open glebm opened this issue 7 years ago • 2 comments

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?

glebm avatar Jan 08 '17 14:01 glebm

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

byroot avatar Jan 08 '17 18:01 byroot

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.

glebm avatar Jan 08 '17 19:01 glebm