Function aspasia::detect_format_by_content
source · pub fn detect_format_by_content(path: impl AsRef<Path>) -> Result<Format, Error>
Expand description
Attempt to detect subtitle format from file contents
Errors
- Returns
Error::FileIoError
if an error results while attempting to open the file for encoding detection or format detection. - Returns
Error::FormatUnknownError
if unable to conclusively determine a single format.