]> git.parisson.com Git - deefuzzer.git/commitdiff
Update song separation mark
authorFrançois LASSERRE <choiz@me.com>
Wed, 6 Aug 2014 09:34:44 +0000 (11:34 +0200)
committerFrançois LASSERRE <choiz@me.com>
Wed, 6 Aug 2014 09:34:44 +0000 (11:34 +0200)
 Replace "artist : title" by "artist - title"

deefuzzer/station.py

index a8935eafeb80ab1a700bce39724d7309092d8138..0c8fa774bab5a20d65381b73d6aaeb5e1ba0b598 100644 (file)
@@ -361,7 +361,7 @@ class Station(Thread):
                 if not (title or artist):
                     song = str(media_obj.file_name)
                 else:
-                    song = artist + ' : ' + title
+                    song = artist + ' - ' + title
                     song = song.encode('utf-8')
                     artist = artist.encode('utf-8')
 
@@ -485,7 +485,7 @@ class Station(Thread):
             if not (title or artist):
                 song = str(media.file_title)
             else:
-                song = artist + ' : ' + title
+                song = artist + ' - ' + title
 
             media_absolute_playtime += media.length
 
@@ -537,7 +537,7 @@ class Station(Thread):
         self.artist = self.relay_author.encode('utf-8')
         self.title = self.title.replace('_', ' ')
         self.artist = self.artist.replace('_', ' ')
-        self.song = self.artist + ' : ' + self.title
+        self.song = self.artist + ' - ' + self.title
 
         if self.type == 'stream-m':
             relay = URLReader(self.relay_url)
@@ -563,7 +563,7 @@ class Station(Thread):
         if not (self.title or self.artist):
             song = str(self.current_media_obj[0].file_name)
         else:
-            song = self.artist + ' : ' + self.title
+            song = self.artist + ' - ' + self.title
 
         self.song = song.encode('utf-8')
         self.artist = self.artist.encode('utf-8')