]> git.parisson.com Git - telecaster-client.git/commitdiff
fix wrong odd_conf_file
authoryomguy <>
Wed, 29 Apr 2009 14:49:02 +0000 (14:49 +0000)
committeryomguy <>
Wed, 29 Apr 2009 14:49:02 +0000 (14:49 +0000)
station.py

index 6452fe613fb9aedd41a6909280de3c6685e9f42f..94d1160cf8e246fc75496a38ef9b465642adcdf2 100644 (file)
@@ -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)