# Class e.p.a.c.CoverInDir(MetadataProvider):

Part of elisa.plugins.album_art.coverindir_metadata View In Hierarchy

This CoverInDir Metadata Provider just looks if there are might covers in the directory of the URI. If there are more than one found, it uses the best suited one.

Instance Variables | list_of_extentions | a list of extentions our cover could have. (type: list )
| list_of_names | a list of names for our cover sorted by priority. if there is none found, which is exactly spelled this way, we'll look for one, which contains any of this names... (type: list )

Line # | Kind | Name | Docs
--- | --- | --- | ---
60 | Method | get_rank | Rank determining wether the parser should be prioritized.
64 | Method | able_to_handle | Return wether this provider is able to fill in metadata, when it
83 | Method | get_metadata | Retrieve the metadata for this metadata request and put it in

Inherited from Component (via MetadataProvider):

Line # | Kind | Name | Docs
--- | --- | --- | ---
85 | Class | PathDescriptor | Undocumented
97 | Class Method | create | Create and initialize the component.
130 | Method | initialize | Initialize the component.
142 | Method | clean | Clean the component.

Inherited from Loggable (via MetadataProvider, Component):

Line # | Kind | Name | Docs
--- | --- | --- | ---
81 | Method | __init__ | Undocumented

def get_rank(self):
overrides elisa.core.components.metadata_provider.MetadataProvider.get_rank
Rank determining wether the parser should be prioritized.

Returns | the rank as integer between 0 and 255 (type: integer )
Unknown Field: todo | We need a better System here so that the developers can decide which one to use

def able_to_handle(self, metadata):
overrides elisa.core.components.metadata_provider.MetadataProvider.able_to_handle
Return wether this provider is able to fill in metadata, when it gets this metadata dictionary.

Parameters | metadata | a dictionary containing all known and requested metadata (type: dict )
Returns | (type: bool )

def get_metadata(self, metadata, low_priority=False):
overrides elisa.core.components.metadata_provider.MetadataProvider.get_metadata
Retrieve the metadata for this metadata request and put it in there.

Parameters | metadata | a dictionary containing all the known and requested metadata, which is also filled with the new data (type: dict )
Returns | (type: `twisted.internet.defer.Deferred` )
Unknown Field: todo | determine all the keys returned for each content-type.