From: Guillaume Pellerin Date: Sun, 16 Sep 2007 01:50:59 +0000 (+0000) Subject: Get multi stations ! X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b5693309261b1d8a408f9b2150b1c9de7031ac93;p=deefuzzer.git Get multi stations ! --- diff --git a/d-fuzz.py b/d-fuzz.py index 2a57e98..5191f00 100755 --- a/d-fuzz.py +++ b/d-fuzz.py @@ -69,12 +69,12 @@ class DFuzz(Thread): print "D-fuzz v"+self.version self.conf = self.get_conf_dict() print self.conf - nb_stations = len(self.conf['d-fuzz']) + nb_stations = len(self.conf['d-fuzz']['station']) print str(nb_stations) for i in range(0,nb_stations): - print str(i) - station = self.conf['d-fuzz']['station'] + #print str(i) + station = self.conf['d-fuzz']['station'][i] print station station_thread = Station(station) station_thread.start() @@ -85,7 +85,6 @@ class Station(DFuzz): def __init__ (self, station): Thread.__init__(self) self.station = station - print self.station self.channels = int(self.station['infos']['channels']) def run(self): @@ -118,7 +117,7 @@ class Channel(Thread): self.channel.user = 'source' self.channel.password = station['server']['sourcepassword'] self.channel.mount = '/' + station['infos']['short_name'] + '_' + \ - str(self.id) + '.' + self.channel.format + str(self.channel_id) + '.' + self.channel.format print self.channel.mount self.channel.public = int(station['server']['public']) diff --git a/example/myfuzz.xml b/example/myfuzz.xml index 332d98f..7fd51b0 100644 --- a/example/myfuzz.xml +++ b/example/myfuzz.xml @@ -1,29 +1,55 @@ - - - Cellar_Playlist - Cellar @ D-Fuzz, Paris (100% Mix Techno, House and Groove !) - The Best Techno, House and Groove Stuff from Paris - 100% Mix ! - http://cellar.parisson.com - Techno/House - 1 - - - localhost - 8000 - /d-fuzz_1.mp3 - source2parisson - 1 - - - /home/pub/samples/samples2/groovemasters/Groovemasters Drums/mp3 - mp3 - 192 - 7 - 44100 - 2 - 1 - - + + + Cellar_Playlist + Cellar @ D-Fuzz, Paris (100% Mix Techno, House and Groove !) + The Best Techno, House and Groove Stuff from Paris - 100% Mix ! + http://cellar.parisson.com + Techno/House + 1 + + + localhost + 8000 + /d-fuzz_1.mp3 + source2parisson + 1 + + + /home/pub/samples/samples2/groovemasters/Groovemasters Drums/mp3 + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + Cellar_Playlist_2 + Cellar @ D-Fuzz, Paris (100% Mix Techno, House and Groove !) + The Best Techno, House and Groove Stuff from Paris - 100% Mix ! + http://cellar.parisson.com + Techno/House + 1 + + + localhost + 8000 + /d-fuzz_2.mp3 + source2parisson + 1 + + + /home/pub/samples/samples2/groovemasters/Groovemasters Drums/mp3 + mp3 + 192 + 7 + 44100 + 2 + 1 + +