Function aspasia::detect_format_from_str
source · pub fn detect_format_from_str(text: &str) -> Result<Format, Error>
Expand description
Attempt to detect subtitle format from text of the first few lines of the subtitle
Errors
Returns Error::FormatUnknownError
if unable to conclusively determine a single format.