Function 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