OSDN Git Service

alpha commit for 0.9.9.2
[rec10/rec10-git.git] / rec10 / trunk / src / scan_ch.py
index 60d8f7f..c34347a 100644 (file)
@@ -15,7 +15,7 @@ import configreader
 import recdblist
 import tv2ts
 tmppath = configreader.getConfPath("tmp")+"/"
-tssplitterp = configreader.getConfPath("tssplitter")
+tssplitterp =configreader.getConfPath("java")+" -jar "+configreader.getConfPath("jTsSplitter")
 def searchCh():
     rec10d.rec10db.change_installed_in_status(2)
     #地上デジタル
@@ -112,6 +112,7 @@ def getTsProgNum(ch,tspath):
     doexe = tssplitterp + " "+chopt+" \""+ pin + "\" \""+ pout + "\""
     doexe = "nice -n 18 " + doexe
     os.environ['LANG']="ja_JP.UTF-8"
+    os.system(u"touch \""+pout+"\"")
     txt = unicode(commands.getoutput(doexe.encode('utf-8')),'utf-8','ignore')
     f=open(pout)
     lines=f.readlines()