From 08877d9a45bbc21b32734c5dc9cf6b267558aa71 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 16 Apr 2009 14:33:31 +0000 Subject: [PATCH] fix song encoding --- deefuzz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deefuzz.py b/deefuzz.py index 219a6fe..9cec841 100755 --- a/deefuzz.py +++ b/deefuzz.py @@ -48,7 +48,7 @@ import subprocess from threading import Thread from tools import * -version = '0.3' +version = '0.3.0' year = datetime.datetime.now().strftime("%Y") @@ -394,7 +394,7 @@ class Station(Thread): else: song = artist + ' : ' + title.decode('utf-8') - self.channel.set_metadata({'song': str(song)}) + self.channel.set_metadata({'song': str(song.encode('utf-8'))}) self.update_rss(self.current_media_obj, self.rss_current_file) self.logger.write('DeeFuzzing this file on %s : id = %s, index = %s, name = %s' \ % (self.short_name, self.id, self.index_list[self.id], self.current_media_obj[0].file_name)) -- 2.39.5