Function aspasia::detect_format_by_extension
source · pub fn detect_format_by_extension(
path: impl AsRef<Path>
) -> Result<Format, Error>
Expand description
Attempt to detect subtitle format using its file extension
Errors
Returns Error::FormatUnknownError
if file extension is not recognised