From 42de2c46313b032d51d72281cc5efa079c3e251c Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 10 Mar 2009 16:41:08 +0000 Subject: [PATCH] verbose clean up, add new mp3 template --- defuzz.py | 10 +-- example/test_mp3.xml | 195 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 199 insertions(+), 6 deletions(-) create mode 100644 example/test_mp3.xml diff --git a/defuzz.py b/defuzz.py index 226d14f..6b8173b 100755 --- a/defuzz.py +++ b/defuzz.py @@ -234,15 +234,13 @@ class Station(Thread): print "Using libshout version %s" % shout.version() q = self.q __chunk = 0 - self.channel.open() - print 'Opening ' + self.short_name + ' - ' + self.channel.name + '...' - time.sleep(0.1) - - # Playlist playlist = self.get_playlist() lp = len(playlist) - #print playlist self.rand_list = range(0,lp-1) + self.channel.open() + print 'Opening ' + self.short_name + ' - ' + self.channel.name + \ + ' (' + str(lp) + ' tracks)...' + time.sleep(0.1) while True: if lp == 0: diff --git a/example/test_mp3.xml b/example/test_mp3.xml new file mode 100644 index 0000000..61f7c2d --- /dev/null +++ b/example/test_mp3.xml @@ -0,0 +1,195 @@ + + + + My_Station_1 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + My_Station_2 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + My_Station_3 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + My_Station_4 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + My_Station_5 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + My_Station_6 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + My_Station_7 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + + My_Station_8 + My best funky station + My personal best funky playlist ever ! + http://mydomain.com + Other + + + localhost + 8000 + source2parisson + 1 + + + /home/momo/music/mp3/groovemaster_drums/ + mp3 + 192 + 7 + 44100 + 2 + 1 + + + + -- 2.39.5