[][src]Function subparse::get_subtitle_format_err

pub fn get_subtitle_format_err(
    ending: &str,
    content: &[u8]
) -> Result<SubtitleFormat>

Returns the subtitle format by the file ending and provided content.

Works exactly like get_subtitle_format, but instead of None a UnknownFileFormat will be returned (for simpler error handling).