From: Guillaume Pellerin Date: Thu, 16 Dec 2010 01:35:56 +0000 (+0000) Subject: shorting tweets X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=017ecc6c51f9f8051423a0b9a337d97e105aea23;p=deefuzzer.git shorting tweets --- diff --git a/tools/station.py b/tools/station.py index 5859a5e..91c4807 100644 --- a/tools/station.py +++ b/tools/station.py @@ -459,10 +459,10 @@ class Station(Thread): def update_twitter_current(self): artist_names = self.artist.split(' ') artist_tags = ' #'.join(list(set(artist_names)-set(['&', '-']))) - message = '%s %s on #%s #%s' % (self.prefix, self.song, self.short_name, artist_tags) + message = '%s %s on #%s' % (self.prefix, self.song, self.short_name) tags = '#' + ' #'.join(self.twitter_tags) message = message + ' ' + tags - message = message[:107] + ' M3U : ' + self.m3u_tinyurl + message = message[:108] + ' M3U: ' + self.m3u_tinyurl self.update_twitter(message) def channel_open(self):