Home | Trees | Indices | Help |
---|
|
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
dict |
|
||
bool |
|
||
twisted.internet.defer.Deferred
|
|
||
bool |
|
||
twisted.internet.defer.Deferred
|
|
||
elisa.core.media_uri.MediaUri |
|
||
list |
|
||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
dict |
default_config =
used when nothing found in Application's config |
||
dict |
config_doc =
documentation for each option of the default configuration. |
||
string |
name =
Component's name |
||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
dict mapping string to int |
supported_uri_schemes DOCME |
||
Inherited from Inherited from |
|
Initialize various variables internal to the Component. This method is called by the plugin_registry after the component's config has been loaded. Override this method if you need to perform some initializations that would normally go in Component's constructor but can't be done there because they require access to the component's config.
|
Retrieve the URI schemes supported by the provider, for each scheme there's a priority. Higher priority == 0 means the provider will always be used to read data from a given scheme. This function is called by the MediaManager to know which media provider it has to use to access a specified URI. You should return a dict containing the uri scheme (such as 'file', 'cdda', ...) and its priority between 0 to 255 (0 being the topmost priority). The prority is used by the MediaManager to know which media provider it should use in case there are more than one who support the desired uri scheme. You might have for example a component which supports more than one scheme, but the support of one of them is not very efficient compared to what it could be. In this case you could modify its priority to tell the MediaManager that another component should be used instead of it to access this scheme. example: { 'file': 0, 'smb': 10 } # FIXME: this should be documented in the class docstring as a class # variable
|
{'file_type': string (values: one of media_provider.media_types) 'mime_type': string (example: 'audio/mpeg' for .mp3 uris. can be empty string if unguessable) }'file_type' and 'mime_type' can be empty strings if it failed recognizing them.
|
|
|
|
|
|
Scan the data located at given uri and return informations about its children. Fills children_with_info. Typemap of filled result:[ (uri : media_uri.MediaUri, additional info: dict), ... ]If you supply additional info, they should be stored in a elisa.core.observers.dict.DictObservable instead of a normal dictionnary. Valid keys: ['default_image', 'artist', 'album', 'song', 'song_artist', 'song_album']
|
|
default_configused when nothing found in Application's config
|
|
supported_uri_schemesDOCME
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:09:39 2008 | http://epydoc.sourceforge.net |