]> git.parisson.com Git - deefuzzer.git/commitdiff
just twitter
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 11:37:37 +0000 (13:37 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 11:37:56 +0000 (13:37 +0200)
deefuzzer/station.py

index 61905686f5630c02c95c1803a076adf206652d51..ef88fe0f9ac445134cb4ae3cb55165d26e67d41e 100644 (file)
@@ -362,7 +362,7 @@ class Station(Thread):
                 new_tracks = new_playlist_set - playlist_set
                 self.new_tracks = list(new_tracks.copy())
 
-                if len(new_tracks) and self.counter:
+                if len(new_tracks):
                     new_tracks_objs = self.media_to_objs(self.new_tracks)
                     for media_obj in new_tracks_objs:
                         title = ''
@@ -377,7 +377,7 @@ class Station(Thread):
                             song = artist + ' : ' + title
                         song = song.encode('utf-8')
                         artist = artist.encode('utf-8')
-                        if self.twitter_mode == 1:
+                        if self.twitter_mode == 1  and self.counter:
                             artist_names = artist.split(' ')
                             artist_tags = ' #'.join(list(set(artist_names)-set(['&', '-'])))
                             message = '#NEWTRACK ! %s #%s on #%s RSS: ' % \