--- /dev/null
+#!/usr/bin/python
+# coding: UTF-8
+# Rec10 TS Recording Tools
+# Copyright (C) 2009 Yukikaze
+import chdb
+import os
+import time
+import epgdb
+
+update=chdb.update()
+print "番組表更新処理"
+print update
+if len(update)>0:
+ print "番組表を更新"
+ print update
+ pid=os.fork()
+ if pid>0:#親プロセスの場合
+ ""
+ else:#子プロセスの場合 アップデートを行って終了
+ for bctype in update:
+ time.sleep(1)
+ print bctype
+ epgdb.updatebc(bctype)
+ sys.exit(0)
\ No newline at end of file
import tv2ts
import re
import chdb
-
+import time
def write(pout,ch):
"""
print "ts2epg処理"
bctype=chdb.chsearch(ch)['bctype']
print ch+":"+bctype
- time="120"
+ timet="120"
if re.search('cs',bctype):
mode="/CS"
- time="300"
+ timet="300"
elif re.search('bs',bctype):
mode="/BS"
- time="300"
+ timet="300"
else :
mode=chdb.bctypesearch('te'+ch)['ontv']
tsepg2xml=configreader.getpath("tsepg2xml")