Package elisa :: Package plugins :: Package bad :: Package album_art_plugin :: Module covercache_metadata :: Class CoverCache
[hide private]
[frames] | no frames]

Class CoverCache

source code


This CoverCache Metadata Provider just looks if there is a cover in its cache which could fit to the used artist/album.

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
initialize(self)
we set some special things here
source code
 
renew_cache(self) source code
integer
get_rank(self)
Rank determining wether the parser should be prioritized.
source code
bool
able_to_handle(self, metadata)
Return wether this provider is able to fill in metadata, when it gets this metadata dictionary.
source code
twisted.internet.defer.Deferred
get_metadata(self, metadata, low_priority=True)
Retrieve the metadata for this metadata request and put it in there.
source code
 
_search_for_cover(self, metadata) source code
 
_set_cover(self, metadata, cover_path) source code

Inherited from core.component.Component: __init__, clean, load_config, save_config

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
dict config_doc = {'caches': 'the pathes to the caches of the covers'}
documentation for each option of the default configuration.
dict default_config = {'caches': []}
used when nothing found in Application's config
string name = 'cover_cache'
Component's name

Inherited from core.component.Component: checked, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]
list list_of_extentions = ['png', 'jpg', 'xpm', 'jpeg']
a list of extentions our cover could have

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

initialize(self)

source code 
we set some special things here
Overrides: core.component.Component.initialize

get_rank(self)

source code 
Rank determining wether the parser should be prioritized.
Returns: integer
the rank as integer between 0 and 255
Overrides: base_components.metadata_provider.MetadataProvider.get_rank
(inherited documentation)

able_to_handle(self, metadata)

source code 
Return wether this provider is able to fill in metadata, when it gets this metadata dictionary.
Returns: bool
Overrides: base_components.metadata_provider.MetadataProvider.able_to_handle
(inherited documentation)

get_metadata(self, metadata, low_priority=True)

source code 
Retrieve the metadata for this metadata request and put it in there.
Returns: twisted.internet.defer.Deferred
Overrides: base_components.metadata_provider.MetadataProvider.get_metadata
(inherited documentation)