]> git.parisson.com Git - deefuzzer.git/commitdiff
fix mount point
authoryomguy <yomguy@parisson.com>
Wed, 1 Feb 2012 16:38:20 +0000 (17:38 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 1 Feb 2012 16:38:20 +0000 (17:38 +0100)
deefuzzer/station.py

index e6d541a7beb0c389b827fe75f56f3370289d97d7..182f697780adfd132fc5cf0428b64d2c16ba996b 100644 (file)
@@ -80,9 +80,12 @@ class Station(Thread):
 
         if 'type' in self.station['server']:
             self.type = self.station['server']['type'] #  'icecast' | 'stream-m'
+
+        if self.type == 'stream-m':
             self.mount = '/publish/' + self.short_name
+        elif self.type == 'icecast':
+            self.mount = '/' + self.short_name
         else:
-            self.type = 'icecast'
             self.mount = '/' + self.short_name
 
         if 'stream-m' in self.type: