CoverArt Browser
v2.0
Browse your cover-art albums in Rhythmbox
|
Public Member Functions | |
def | __init__ |
def | create_unknown_cover |
def | create_cover |
def | coverart_added_callback |
def | load_cover |
def | load_covers |
def | search_covers |
def | cancel_cover_request |
def | update_pixbuf_cover |
def | update_cover |
Public Attributes | |
unknown_cover | |
album_manager | |
req_id | |
Static Public Attributes | |
has_finished_loading = False | |
force_lastfm_check = False | |
tuple | cover_size = GObject.property(type=int, default=0) |
Manager that takes care of cover loading and updating. :param plugin: `Peas.PluginInfo` instance used to have access to the predefined unknown cover. :param album_manager: `AlbumManager` responsible for this manager.
Definition at line 1401 of file coverart_album.py.
def coverart_album.CoverManager.cancel_cover_request | ( | self | ) |
Cancel the current cover request, if there is one running.
Definition at line 1532 of file coverart_album.py.
def coverart_album.CoverManager.load_cover | ( | self, | |
coverobject | |||
) |
Tries to load an Album's cover. If no cover is found upon lookup, the unknown cover is used. This method doesn't actively tries to find a cover, for that you should use the search_cover method. :param album: `Album` for which load the cover.
Definition at line 1473 of file coverart_album.py.
def coverart_album.CoverManager.load_covers | ( | self | ) |
Loads all the covers for the model's albums.
Definition at line 1492 of file coverart_album.py.
def coverart_album.CoverManager.search_covers | ( | self, | |
coverobjects = None , |
|||
callback = lambda *_: None |
|||
) |
Request all the albums' covers, one by one, periodically calling a callback to inform the status of the process. The callback should accept one argument: the album which cover is being requested. When the argument passed is None, it means the process has finished. :param albums: `list` of `Album` for which look for covers. :param callback: `callable` to periodically inform when an album's cover is being searched.
Definition at line 1501 of file coverart_album.py.
def coverart_album.CoverManager.update_cover | ( | self, | |
coverobject, | |||
pixbuf = None , |
|||
uri = None |
|||
) |
Updates the cover database, inserting the pixbuf as the cover art for all the entries on the album. In the case a uri is given instead of the pixbuf, it will first try to retrieve an image from the uri, then recall this method with the obtained pixbuf. :param album: `Album` for which the cover is. :param pixbuf: `GkdPixbuf.Pixbuf` to use as a cover. :param uri: `str` from where we should try to retrieve an image.
Definition at line 1541 of file coverart_album.py.