OSDN Git Service

add tsid channel information for complete BS support.
[rec10/rec10-git.git] / rec10 / trunk / src / recording_earth_pt1.py
index 57df045..4699aee 100644 (file)
@@ -70,7 +70,7 @@ def getActiveAdapter(channel):
         rt=testTune(str(i),channel)
         if rt==1:
             return str(i)
-def record(channel,tsid,out,timelength,decode=1):
+def record(channel,tsid,out,timelength,decode=0):
     if not os.path.exists(tmppath+u"rec.sh"):
         ft=open(tmppath+u"rec.sh","w")
         ft.write(u"#!/bin/bash\n/bin/cat $1 > \"$2\"")
@@ -83,7 +83,7 @@ def record(channel,tsid,out,timelength,decode=1):
         #reccmd=u"/bin/cat \""+configreader.getConfDVB("DVBadapter")+adapt+u"/dvr0\" > \""+out+u"\""
         #if decode==1:
         #    reccmd=configreader.getConfPath("b25")+u" -v 0 \""+configreader.getConfDVB("DVBadapter")+adapt+u"/dvr0\" \""+out+"\""
-        recdblist.addLog(out, tunecmd+"\n"+reccmd, "record(DVB)",100)
+        recdblist.addLog(out, tunecmd, "record(DVB)",100)
         p1=subprocess.Popen([configreader.getConfDVB("DVBtune"),adapt,channel2freq(channel),tsid,timelength,out],env=my_env)
         #time.sleep(0.2)
         #if decode==1: