Line # | Kind | Name | Docs |
---|---|---|---|
21 | Class | UnknownFileExtension | Raised by the typefind
function when it doesn't recognize a |
33 | Function | typefind | Retrieve the media type of the given URI, based on its |
Returns ['audio',] if the uri is an audio file Returns ['video',] if the uri is a video file Returns ['image',] if the uri is an image file Returns ['audio','video'] if the uri extension is ogg
If the extension is not recognized, raise UnknownFileExtension
Parameters | uri | the media resource address to analyze
(type: elisa.core.media_uri.MediaUri
) |
Returns | (type: list of strings ) |