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



On ven, 2007-01-19 at 00:26 +0000, Edward Catmur wrote:
> On Thu, 2007-01-18 at 18:54 +0100, Guillaume Desmottes wrote:
> > 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.
> 
> You don't have to write an ArtDisplayPlugin source; once bug 398093[1]
> is fixed you will be able to emit the art on the metadatabus from the
> Jamendo plugin and the art widget will display it.
> 
> Hm - looks like you'd be better off emitting an uri on the metadatabus.
> I'll look into getting that to work.
> 

As bug 398231 was fixed, I have to use it now (if a well understand).
Could you tell me some words about how to use it or a little sample code
to emit my URL to the plugin please?

Thanks,

	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]