From: Guillaume Pellerin Date: Sat, 16 Jan 2010 13:53:06 +0000 (+0000) Subject: avoid '&' in twitter tags X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cc82fecb127cbd90240d88a585499494757fa6f1;p=deefuzzer.git avoid '&' in twitter tags --- diff --git a/tools/station.py b/tools/station.py index 807312a..2590382 100644 --- a/tools/station.py +++ b/tools/station.py @@ -349,7 +349,7 @@ class Station(Thread): def update_twitter(self): artist_names = self.artist.split(' ') - artist_tags = ' #'.join(artist_names) + artist_tags = ' #'.join(list(set(artist_names)-set(['&']))) message = '♫ %s %s on #%s #%s' % (self.prefix, self.song, self.short_name, artist_tags) tags = '#' + ' #'.join(self.twitter_tags) message = message + ' ' + tags