Package elisa :: Package plugins :: Package good :: Package amazon_plugin :: Module amazon_metadata :: Class AmazonCovers
[hide private]
[frames] | no frames]

Class AmazonCovers

source code


Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
initialize(self)
Initialize various variables internal to the Component.
source code
 
clean(self)
Perform some cleanups and save the Component config back to application's config.
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
 
delete_expired(self) 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
 
_get_album(self, metadata) source code
 
_get_artist(self, metadata) source code
 
_get_cover(self, metadata) source code
 
_got_new_image(self, a, b, c) source code
 
_image_not_found(self, path, metadata, album=0, locale='frontend') source code
 
_doing_album_and_artist_lookup(self, path, metadata, locale='frontend') source code
 
_doing_album_lookup(self, path, metadata, locale) source code
 
_set_cover(self, metadata, cover) source code

Inherited from core.component.Component: 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 = {'locale': 'set your locale amazon here, could be...
documentation for each option of the default configuration.
dict default_config = {'locale': ''}
used when nothing found in Application's config
string name = 'amazon_covers'
Component's name

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

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: core.component.Component.__init__
(inherited documentation)

initialize(self)

source code 

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.
Overrides: core.component.Component.initialize
(inherited documentation)

clean(self)

source code 
Perform some cleanups and save the Component config back to application's config. This method should be called by the elisa.core.manager.Manager holding the component reference when it stops itself.
Overrides: core.component.Component.clean
(inherited documentation)

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)

Class Variable Details [hide private]

config_doc

documentation for each option of the default configuration. Keys should be same as the ones in default_config and values should be strings
Type:
dict
Value:
{'locale': 'set your locale amazon here, could be any of de,jp,ca,uk,f\
r'}