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)] and use that. -- Adam Zimmerman <[EMAIL PROTECTED]> CREATIVITY - http://mirrors.creativecommons.org/movingimages/Building_on_the_Past.mpg ALWAYS - http://www.musiccreators.ca/ BUILDS - http://www.ubuntu.com/ ON THE PAST - http://www.theopencd.org/ -- Committees have become so important nowadays that subcommittees have to be appointed to do the work. _______________________________________________ rhythmbox-devel mailing list [email protected] http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
