]> git.parisson.com Git - deefuzzer.git/commitdiff
utf again
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 16 Apr 2009 02:18:56 +0000 (02:18 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 16 Apr 2009 02:18:56 +0000 (02:18 +0000)
deefuzz.py

index 3d1d485bc7ab9302686f4f30ea0be390e68099a1..4c2365fc5b3e649545cfa850329d15fb19d93801 100755 (executable)
@@ -258,7 +258,7 @@ class Station(Thread):
                 
             if self.rss_enclosure == '1':
                 rss_item_list.append(PyRSS2Gen.RSSItem(
-                    title = song.encode('utf-8'),
+                    title = song.decode(),
                     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.encode('utf-8'),
+                    title = song.decode(),
                     link = media_link,
                     description = media_description,
                     guid = PyRSS2Gen.Guid(media_link),