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\"")
#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: