Fix yet another encoding problem (bug 1124)

Time for Py3K to come around and free us of
all that encoding weirdness ;)
This commit is contained in:
Thomas Perl 2010-08-24 19:50:49 +02:00
parent edbad47928
commit 9a37e3111f

View file

@ -185,7 +185,7 @@ class CoverDownloader(ObservableService):
pixbuf = None
if os.path.exists(channel.cover_file):
try:
pixbuf = gtk.gdk.pixbuf_new_from_file(util.sanitize_encoding(channel.cover_file))
pixbuf = gtk.gdk.pixbuf_new_from_file(channel.cover_file.decode(util.encoding, 'ignore'))
except:
log('Data error while loading %s', channel.cover_file, sender=self)