mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
Illegal .srt being created from DVBs #166
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cfsmp3 on GitHub (Jun 22, 2016).
Originally assigned to: @anshul1912 on GitHub.
Lines like this (processing 01-BBC1.EastEnders.ts):
334
00:16:49,197 --> 00:16:51,966
Jane had squeezed my hand.
Yeah. . .was it just that?
Are illegal in .srt (there cannot be empty lines in a subtitle frame in .srt)
I think we're just adding an extra \n at the end of each line.
Also, we're not consistent with \n vs \r\n, the same .srt contains both.
@cfsmp3 commented on GitHub (Jul 5, 2016):
The line separators in Windows must be \r\n, not just \n... I've corrected this by passing encoded_crlf to add_ocrtext2str.
In fact I believe for .srt it's always CRLF regardless of the platform
See
http://www.textfiles.com/uploads/kds-srt.txt