From: Guillaume Pellerin Date: Thu, 16 Apr 2009 14:33:31 +0000 (+0000) Subject: fix song encoding X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=08877d9a45bbc21b32734c5dc9cf6b267558aa71;p=deefuzzer.git fix song encoding --- 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))