]> git.parisson.com Git - deefuzzer.git/commitdiff
avoid '&' in twitter tags
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 16 Jan 2010 13:53:06 +0000 (13:53 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 16 Jan 2010 13:53:06 +0000 (13:53 +0000)
tools/station.py

index 807312a71bcf1e887573e1e644dad3d63ec5f8e5..25903828a8c93eb114acf3d2d9d714f19f284bc0 100644 (file)
@@ -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