]> git.parisson.com Git - deefuzzer.git/commitdiff
fix the f**king encoding ?
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 16 Apr 2009 02:16:32 +0000 (02:16 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 16 Apr 2009 02:16:32 +0000 (02:16 +0000)
deefuzz.py

index 5e172a274895a58241d1a2f532a4aea4d3332c37..3d1d485bc7ab9302686f4f30ea0be390e68099a1 100755 (executable)
@@ -254,11 +254,11 @@ class Station(Thread):
             if not (title or artist):
                 song = str(media.file_name)
             else:
-                song = str(artist) + ' : ' + str(title)
+                song = artist + ' : ' + title
                 
             if self.rss_enclosure == '1':
                 rss_item_list.append(PyRSS2Gen.RSSItem(
-                    title = song,
+                    title = song.encode('utf-8'),
                     link = media_link,
                     description = media_description,
                     enclosure = PyRSS2Gen.Enclosure(media_link, str(media.size), 'audio/mpeg'),
@@ -267,7 +267,7 @@ class Station(Thread):
                     )
             else:
                 rss_item_list.append(PyRSS2Gen.RSSItem(
-                    title = song,
+                    title = song.encode('utf-8'),
                     link = media_link,
                     description = media_description,
                     guid = PyRSS2Gen.Guid(media_link),