OSDN Git Service
(root)
/
rec10
/
rec10-git.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
523bdfc65f3b362d815a12cf2e76a037738f3bd9
[rec10/rec10-git.git]
/
dist
/
trunk
/
rec10
/
epgrefresh.py
1
#!/usr/bin/python
2
# coding: UTF-8
3
# Rec10 TS Recording Tools
4
# Copyright (C) 2009-2011 Yukikaze
5
import os
6
import sys
7
import time
8
9
import chdb
10
import epgdb
11
import recdblist
12
13
update = chdb.update()
14
if len(update) > 0:
15
#recdblist.printutf8(u"番組表を更新")
16
#print update
17
pid = os.fork()
18
if pid > 0:#親プロセスの場合
19
""
20
else:#子プロセスの場合 アップデートを行って終了
21
for bctype in update:
22
time.sleep(1)
23
epgdb.updatebc(bctype)
24
sys.exit(0)