OSDN Git Service
(root)
/
rec10
/
rec10-git.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8ca8bb363e0bccd8a7251683bd8ef871afb0bd03
[rec10/rec10-git.git]
/
rec10
/
trunk
/
src
/
epgrefresh.py
1
#!/usr/bin/python
2
# coding: UTF-8
3
# Rec10 TS Recording Tools
4
# Copyright (C) 2009 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)