From: yomguy <> Date: Fri, 25 Jul 2008 00:20:22 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 0.9~318 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=53b32945c059f9a1131505d4f88cfa335440fe3b;p=telecaster-client.git --- diff --git a/etc/telecaster_mp3.cfg b/etc/telecaster_mp3.cfg index 9aac5d7..b284a96 100644 --- a/etc/telecaster_mp3.cfg +++ b/etc/telecaster_mp3.cfg @@ -1,7 +1,7 @@ Server=localhost Port=8000 ServerPassword=source2parisson -ServerMountpoint=/Pre-Barreau_-_ICP_-_ENM_-_undefined.mp3 +ServerMountpoint=/Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Cours.mp3 ServerPublic=0 AutomaticReconnectSecs=10 Encode=MP3 Lame @@ -13,8 +13,8 @@ ServerType=Icecast2 ExternalFile=/tmp/test #YP Settings ServerStreamURL=http://www.pre-barreau.com -ServerName=Pre-Barreau_-_ICP_-_ENM_-_undefined -ServerDescription=Pre-Barreau_-_ICP_-_ENM_-_undefined_-_4_-_GIUSTINIANI_G._-_2e_cours +ServerName=Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Cours +ServerDescription=Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Cours_-_3_-_BOFFA_R._-_2e_cours ServerGenre=Teaching #Advanced Settings LogLevel=1 diff --git a/telecaster.py b/telecaster.py index 9e268ad..f43c1c2 100755 --- a/telecaster.py +++ b/telecaster.py @@ -122,7 +122,8 @@ class Station(Conference): oddconf.close() def start_oddcast(self): - os.makedirs(self.raw_dir) + if not os.path.exists(self.raw_dir): + os.makedirs(self.raw_dir) command = 'oddcastv3 -n "'+clean_string(self.conference)[0:16]+'" -c '+self.odd_conf_file+ \ ' alsa_pcm:capture_1 > /dev/null &' os.system(command)