OSDN Git Service

modify tune software and recording script.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Tue, 31 Jan 2012 00:13:08 +0000 (00:13 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Tue, 31 Jan 2012 00:13:08 +0000 (00:13 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@905 4e526526-5e11-4fc0-8910-f8fd03428081

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: