From: yomguy <> Date: Wed, 29 Apr 2009 14:49:02 +0000 (+0000) Subject: fix wrong odd_conf_file X-Git-Tag: 0.9~293 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b6c36a2c7349c680d9fe3979629a06a6ce076aba;p=telecaster-client.git fix wrong odd_conf_file --- diff --git a/station.py b/station.py index 6452fe6..94d1160 100644 --- a/station.py +++ b/station.py @@ -125,14 +125,14 @@ class Station(Conference): oddconf = open(odd_conf_file,'w') oddconf.writelines(newlines) oddconf.close() - self.odd_conf = self.odd_conf_file + self.odd_conf = odd_conf_file def start_oddcast(self): - command = 'oddcastv3 -n "'+clean_string(self.conference)[0:16]+'" -c '+self.odd_conf+ \ - ' alsa_pcm:capture_1 > /dev/null &' + command = 'oddcastv3 -n "'+clean_string(self.conference)[0:16]+'" -c "'+self.odd_conf+ \ + '" alsa_pcm:capture_1 > /dev/null &' os.system(command) self.set_lock() - time.sleep(0.1) + time.sleep(1) def set_lock(self): lock = open(self.lock_file,'w') @@ -148,7 +148,7 @@ class Station(Conference): if not os.path.exists(self.output_dir): os.makedirs(self.output_dir) command = 'streamripper ' + self.url + self.mount_point + \ - ' -d '+self.output_dir+' -D "%S" -s -t --quiet > /dev/null &' + ' -d '+self.output_dir+' -D \"%S\" -s -t --quiet > /dev/null &' os.system(command) time.sleep(1)