[rhythmbox] artdisplay: utf-8 encode search terms for discogs



commit 7d762ce34ce3ed11deb4baeefaf6731e2972fe4d
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Jan 3 19:19:13 2010 +1000

    artdisplay: utf-8 encode search terms for discogs

 .../artdisplay/artdisplay/DiscogsCoverArtSearch.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/artdisplay/artdisplay/DiscogsCoverArtSearch.py b/plugins/artdisplay/artdisplay/DiscogsCoverArtSearch.py
index 2051e09..07cfddd 100644
--- a/plugins/artdisplay/artdisplay/DiscogsCoverArtSearch.py
+++ b/plugins/artdisplay/artdisplay/DiscogsCoverArtSearch.py
@@ -259,7 +259,7 @@ class DiscogsCoverArtSearch (object):
 		self.__poke()
 
 		print "searching for (%s, %s)" % (artist, album)
-		terms = artist + " " + album
+		terms = artist.encode('utf-8') + " " + album.encode('utf-8')
 		url = "http://www.discogs.com/search?type=all&f=xml&q=%s&api_key=%s"; % (urllib.quote_plus(terms), API_KEY)
 
 		loader = rb.Loader()



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