]> git.parisson.com Git - deefuzzer.git/commitdiff
sort playlist
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 20 May 2009 10:55:46 +0000 (10:55 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 20 May 2009 10:55:46 +0000 (10:55 +0000)
deefuzzer.py

index 7f6c4315e4657b637437e728f84b71657241d33f..7b3abead7d7a37f574b0da44f521d4a198cff79b 100755 (executable)
@@ -327,6 +327,7 @@ class Station(Thread):
                 ext = s[len(s)-1]
                 if ext.lower() == self.channel.format and not '/.' in file:
                     file_list.append(root + os.sep + file)
+        file_list.sort()
         self.playlist = file_list
 
     def get_next_media(self):
@@ -334,6 +335,7 @@ class Station(Thread):
         if self.lp != 0:
             self.set_playlist()
             lp_new = len(self.playlist)
+            self.logger.write(self.playlist)
 
             if lp_new != self.lp or self.counter == 0:
                 self.id = 0