Covert unicode artist/album strings to utf-8 before urlencoding

This commit is contained in:
rembo10
2012-06-22 11:37:25 +05:30
parent a2563458f1
commit 20cf3930b2

View File

@@ -194,8 +194,8 @@ class Cache(object):
params = { "method": "album.getInfo",
"api_key": lastfm_apikey,
"artist": dbartist['ArtistName'],
"album": dbartist['AlbumTitle'],
"artist": dbartist['ArtistName'].encode('utf-8'),
"album": dbartist['AlbumTitle'].encode('utf-8'),
"format": "json"
}