Re: [Rhythmbox-devel] Add a field in the DB / Jamendo cover art



On jeu, 2007-01-18 at 09:32 -0800, Adam Zimmerman wrote:
> On Thu, 2007-18-01 at 14:14 +0100, Guillaume Desmottes wrote:
> > In the cover plugin, I got the current entry and have to find its cover.
> > A really easy method would be to return this url:
> > http://www.jamendo.com/get/album/id/album/artworkurl/redirect/<albumID>/?artwork_size=200
> > To do that I need to get the Jamendo album id of the track and so I'd
> > like to store it in the DB.
> > 
> > Or maybe you'd see a easier way to get this id without store it in the
> > DB?
> 
> You can try doing what the Magnatune plugin does for the SKU: store it
> in a python dictionary indexed by URI. Then you can just look up:
> 
> sku = self.__sku_dict[self.__db.entry_get(track,
> rhythmdb.PROP_LOCATION)]
> 

I always do this kind of the stuff in the Jamendo plugin but here I'm in
the cover plugin and so can't access to this dictionary.

	G.

-- 
Guillaume Desmottes <cass skynet be>
Jabber <cassidy jabber belnet be>
GPG 1024D/711E31B1 | 1B5A 1BA8 11AA F0F1 2169  E28A AC55 8671 711E 31B1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]