From: Guillaume Pellerin Date: Wed, 28 Oct 2009 08:43:39 +0000 (+0000) Subject: finally fix twitt X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8be6bc7cfdc804bdc3e4f1e45a4a49bae33b479f;p=deefuzzer.git finally fix twitt --- diff --git a/deefuzzer.py b/deefuzzer.py index 8ca68b3..2997272 100755 --- a/deefuzzer.py +++ b/deefuzzer.py @@ -281,8 +281,8 @@ class Station(Thread): def update_twitter(self): if self.twitter_mode == '1': - message = 'now playing: %s #%s #%s' % (self.song.replace('_', ' '), self.artist.replace(' ', ''), self.short_name - tags = ' #' + self.twitter_tags.join(' #') + message = 'now playing: %s #%s #%s' % (self.song.replace('_', ' '), self.artist.replace(' ', ''), self.short_name) + tags = ' #' + ' #'.join(self.twitter_tags) message = message + tags self.twitter.post(message[:113] + ' ' + self.tinyurl)