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
the first release of 0.5
[rec10/rec10-git.git]
/
rec10
/
branches
/
0.5
/
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
import sys
10
11
update=chdb.update()
12
print "番組表更新処理"
13
print update
14
if len(update)>0:
15
print "番組表を更新"
16
print update
17
pid=os.fork()
18
if pid>0:#親プロセスの場合
19
""
20
else:#子プロセスの場合 アップデートを行って終了
21
for bctype in update:
22
time.sleep(1)
23
print bctype
24
epgdb.updatebc(bctype)
25
sys.exit(0)