[rhythmbox/gobject-introspection: 19/41] update some cover art searches for introspected api changes



commit a6ae370f53fad5eb70ab600f95ec03aacfdb9ac0
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Dec 1 09:05:24 2010 +1000

    update some cover art searches for introspected api changes

 .../artdisplay/EmbeddedCoverArtSearch.py           |    2 +-
 .../artdisplay/MusicBrainzCoverArtSearch.py        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/artdisplay/artdisplay/EmbeddedCoverArtSearch.py b/plugins/artdisplay/artdisplay/EmbeddedCoverArtSearch.py
index d329940..9d62781 100644
--- a/plugins/artdisplay/artdisplay/EmbeddedCoverArtSearch.py
+++ b/plugins/artdisplay/artdisplay/EmbeddedCoverArtSearch.py
@@ -87,7 +87,7 @@ class EmbeddedCoverArtSearch (object):
 			return
 
 		# only search local files
-		uri = db.entry_get_string(entry, RB.RhythmDBPropType.LOCATION)
+		uri = entry.get_string(RB.RhythmDBPropType.LOCATION)
 		if uri.startswith("file://") is False:
 			print "not checking for embedded cover art in non-local entry %s" % uri
 			on_search_completed (self, entry, None, *args)
diff --git a/plugins/artdisplay/artdisplay/MusicBrainzCoverArtSearch.py b/plugins/artdisplay/artdisplay/MusicBrainzCoverArtSearch.py
index 8c7a825..8b123ea 100644
--- a/plugins/artdisplay/artdisplay/MusicBrainzCoverArtSearch.py
+++ b/plugins/artdisplay/artdisplay/MusicBrainzCoverArtSearch.py
@@ -74,7 +74,7 @@ class MusicBrainzCoverArtSearch (object):
 		self.entry = entry
 
 		# if we've got an album ID, we can get the album info directly
-		album_id = db.entry_get_string(entry, RB.RhythmDBPropType.MUSICBRAINZ_ALBUMID)
+		album_id = entry.get_string(RB.RhythmDBPropType.MB_ALBUMID)
 		if album_id != "":
 			# these sometimes look like full URLs, sometimes not
 			if album_id.startswith(MUSICBRAINZ_RELEASE_PREFIX):



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