Closed bytedream closed 6 months ago
This PR reworks the parsing and adds error handling. This impacted most of the code in the library.
SSAFile
SSA
VTTFile
VTT
SRTFile
SRT
File
parse
parse_from_file
Subtitle
time
Fixes #18 Fixes #43 Fixes #48 Fixes #49
This PR reworks the parsing and adds error handling. This impacted most of the code in the library.
SSAFile
toSSA
,VTTFile
toVTT
andSRTFile
toSRT
, theFile
suffix was a bit irritatingparse
function from module level directly to the structsparse_from_file
functions. The errors that get thrown when reading files weren't compatible with the newly introduced error handlingSubtitle
structtime
crateFixes #18 Fixes #43 Fixes #48 Fixes #49