Re: [Rhythmbox-devel] Add a field in the DB / Jamendo cover art
- From: Guillaume Desmottes <cass skynet be>
- To: Ed Catmur <ed catmur co uk>
- Cc: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Add a field in the DB / Jamendo cover art
- Date: Thu, 25 Jan 2007 12:21:07 +0100
On dim, 2007-01-21 at 22:41 +0000, Ed Catmur wrote:
> Tell me if you have trouble getting it to work,
>
I got this error:
Traceback (most recent call last):
File "/home/cassidy/usr/lib/rhythmbox/plugins/jamendo/__init__.py",
line 106, in playing_entry_changed
self.source.playing_entry_changed (entry)
File
"/home/cassidy/usr/lib/rhythmbox/plugins/jamendo/JamendoSource.py", line
376, in playing_entry_changed
self.__db.emit_entry_extra_metadata_notify (entry,
"rb:coverArt-uri", url)
TypeError: can't map metadata to GType system
I just perform:
def playing_entry_changed (self, entry):
if not self.__db or not entry:
return
if entry.get_entry_type() !=
self.__db.entry_type_get_by_name("JamendoEntryType"):
return
stream = self.__db.entry_get (entry, rhythmdb.PROP_LOCATION)
url = "http://www.jamendo.com/get/album/id/album/artworkurl/redirect/%
s/?artwork_size=200" %\
self.__album_id[stream]
print url
self.__db.emit_entry_extra_metadata_notify (entry, "rb:coverArt-uri",
url)
The url is good and point on this kind of link:
http://www.jamendo.com/get/album/id/album/artworkurl/redirect/1540/?artwork_size=200
You can get the whole plugin using Bazaar:
bzr branch http://cass.no-ip.com/~cassidy/repos/jamendo/
Thanks for your help.
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]