OSDN Git Service
(root)
/
rec10
/
rec10-git.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add epgrefresh exeable py file.
[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 chdb
6
import os
7
import time
8
import epgdb
9
10
update=chdb.update()
11
print "番組表更新処理"
12
print update
13
if len(update)>0:
14
print "番組表を更新"
15
print update
16
pid=os.fork()
17
if pid>0:#親プロセスの場合
18
""
19
else:#子プロセスの場合 アップデートを行って終了
20
for bctype in update:
21
time.sleep(1)
22
print bctype
23
epgdb.updatebc(bctype)
24
sys.exit(0)