Module e.c.u.typefinding

Part of elisa.core.utils

No module docstring
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
def typefind(uri):
Retrieve the media type of the given URI, based on its extension.

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

Parametersurithe media resource address to analyze (type: elisa.core.media_uri.MediaUri )
Returns (type: list of strings )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.