]> git.parisson.com Git - deefuzzer.git/commitdiff
fix accents for twitting
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 30 Oct 2009 22:30:09 +0000 (22:30 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 30 Oct 2009 22:30:09 +0000 (22:30 +0000)
deefuzzer.py
example/myfuzz.xml

index 3dfa66e28d04fe7885300d53695d06cb17005100..8928ec341cf271f22dcf774e0b0c645d78efbceb 100755 (executable)
@@ -284,7 +284,7 @@ class Station(Thread):
             message = 'now playing: %s #%s #%s' % (self.song.replace('_', ' '), self.artist.replace(' ', ''), self.short_name)
             tags = '#' + ' #'.join(self.twitter_tags)
             message = message + ' ' + tags
-            message = str(message.encode('utf-8'))
+            message = message.decode('utf8')
             self.twitter.post(message[:113] + ' ' + self.tinyurl)
 
     def update_rss(self, media_list, rss_file, sub_title):
index 69f66d580d24a2eeabc20722d3c41180ec8e0284..099451737971ea971b8713a92a9fb24d4c9823ad 100644 (file)
@@ -32,6 +32,7 @@
             <mode>0</mode>
             <user>xxxxxx</user>
             <pass>xxxxxx</pass>
+            <tags>bla bla</tags>
         </twitter>
     </station>
     <station>
@@ -65,6 +66,7 @@
             <mode>0</mode>
             <user>xxxxxx</user>
             <pass>xxxxxx</pass>
+            <tags>bla bla</tags>
         </twitter>
     </station>
 </deefuzzer>