Author: duncan
Date: Tue Sep 26 14:22:34 2006
New Revision: 8244

Modified:
   branches/rel-1-5/freevo/src/audio/plugins/coversearch.py

Log:
[ 1565765 ] Coversearch crashes when artist or album has unicode char
Fix applied


Modified: branches/rel-1-5/freevo/src/audio/plugins/coversearch.py
==============================================================================
--- branches/rel-1-5/freevo/src/audio/plugins/coversearch.py    (original)
+++ branches/rel-1-5/freevo/src/audio/plugins/coversearch.py    Tue Sep 26 
14:22:34 2006
@@ -187,7 +187,7 @@
             cover = amazon.searchByKeyword(search_string , 
product_line="music")
         except amazon.AmazonError:
             box.destroy()
-            dict_tmp = { "artist": String(artist), "album": String(album) }
+            dict_tmp = { "artist": artist.encode('ascii','replace'), "album": 
album.encode('ascii','replace') }
             box = PopupBox(text=_( 'No matches for %(artist)s - %(album)s' ) % 
dict_tmp )
             box.show()
             time.sleep(2)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to