From cc82fecb127cbd90240d88a585499494757fa6f1 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 16 Jan 2010 13:53:06 +0000 Subject: [PATCH] avoid '&' in twitter tags --- tools/station.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5