OSDN Git Service

fix recording in DVB mode.
[rec10/rec10-git.git] / rec10 / trunk / src / recording_earth_pt1.py
index f6081c9..ccd7adb 100644 (file)
@@ -71,14 +71,14 @@ def record(channel,tsid,out,timelength,decode=1):
     adapt=getActiveAdapter(channel)
     if adapt!=None:
         tunecmd=configreader.getConfDVB("DVBtune")+u" "+adapt+u" "+channel2freq(channel)+u" "+tsid
-        reccmd=u"/bin/cat "+configreader.getConfDVB("DVBadapter")+adapt+"/dvr0 > "+out
+        reccmd=u"/bin/cat \""+configreader.getConfDVB("DVBadapter")+adapt+"/dvr0\" > "+out
         if decode==1:
-            reccmd=configreader.getConfPath("b25")+u" -v 0 "+configreader.getConfDVB("DVBadapter")+adapt+"/dvr0 "+out
+            reccmd=configreader.getConfPath("b25")+u" -v 0 \""+configreader.getConfDVB("DVBadapter")+adapt+"/dvr0\" \""+out+"\""
         recdblist.addLog(out, tunecmd+"\n"+reccmd, "record(DVB)",100)
         p1=subprocess.Popen([configreader.getConfDVB("DVBtune"),adapt,channel2freq(channel),tsid])
         time.sleep(0.2)
         if decode==1:
-            p2=subprocess.Popen([configreader.getConfPath("b25"),u"-v 0",configreader.getConfDVB("DVBadapter")+adapt+"/dvr0",out],preexec_fn=os.setsid,bufsize=-1)
+            p2=subprocess.Popen([configreader.getConfPath("b25"),u"-v 0",u"\""+configreader.getConfDVB("DVBadapter")+adapt+"/dvr0\"","\""+out+"\""],preexec_fn=os.setsid,bufsize=-1)
         else:
             p2=subprocess.Popen(reccmd,shell=True,preexec_fn=os.setsid,bufsize=-1)
         time.sleep(float(timelength))