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

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:
> 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,

and use that.

Adam Zimmerman <adam_zimmerman sfu ca>

ALWAYS      -
BUILDS      -

 Committees have become so important nowadays that subcommittees have to
be appointed to do the work.

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