tmppath = configreader.getConfPath("tmp")+"/"\r
if tmppath=="/":\r
tmppath=path\r
+if not os.path.exists(tmppath):\r
+ os.mkdir(tmppath)\r
def update(chtxt):\r
recdblist.printutf8(chtxt)\r
tnow = datetime.datetime.now()\r
ライセンスは LGPL v3に準拠します(license.txt参照)
[必要コマンド]
-python(2.6にて動作確認)
+python(2.6,2.7にて動作確認)
wine
mencoder
ffmpeg
jTsSplitter(included)
BonTsDemux(included)
epgdump(included)
-b25(non-included)
-recpt1(recfriioでもいいはずです)(non-included)
+b25(not included)
+recpt1(recfriioでもいいはずです)(not included)
MySQLdb
+
事前準備:
-pt1などのドライバーをインストールした上で、recpt1などのソフトを導入、
+ネットの情報を参考にpt1ドライバーを無効化する
+pt1などのドライバーをインストールした上(chardev版)で、recpt1などのソフトを導入、
b25をインストールしておいてください。
+*注意
+11年10月01日からのBS新チャンネル対応のためには、10/02現在ではrecpt1にパッチを当てる必要があります。
+rec10同梱版のepgrecはts解析によってチャンネルデータを得るように改変してあるので
+変更は不要です。
1:install.shを実行
2:表示にしたがって設定の変更(チャンネルなど)
keywordの重複チェックをより賢く
logoのインポートに対応
ArchLinuxサポートのための細かな変更
+新BSチャンネル対応
11/02/02 0.9.9
BonTsDemuxを最新版へ(nogui化によりXvfbが不要)
import configreader\r
import recdblist\r
import recdb\r
+tmppath = configreader.getConfPath("tmp")+"/"\r
+if not os.path.exists(tmppath):\r
+ os.mkdir(tmppath)\r
def writeRecQue(parentpath,chtxt,title,opts):\r
- f=open(os.path.join(parentpath,title+".recq"),"w")\r
+ outputpath=os.path.join(parentpath,title+".recq")\r
+ tmpoppath=os.path.join(tmppath,title+".recq")\r
+ f=open(outputpath,"w")\r
optt=opts\r
#optt=opts.replace("E","")\r
#optt=optt.replace("D","")\r
str="99"+","+datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+","+configreader.getConfEnv("iff")+","+chtxt+","+title+","+optt\r
f.write(str.encode('utf-8'))\r
f.close()\r
-\r
+ if not os.path.exists(outputpath):\r
+ if os.path.exists(tmpoppath):\r
+ os.remove(tmpoppath)\r
+ f2=open(tmpoppath,"w")\r
+ f2.write(str.encode('utf-8'))\r
+ f2.close()\r
+ try:\r
+ os.chmod(tmpoppath)\r
+ except:\r
+ ""\r
+ shutil.copy(tmpoppath,outputpath)\r
+ os.remove(tmpoppath)\r
def readRecQue(recquepath):\r
f=open(recquepath,"r")\r
line = unicode(f.readline(),'utf-8')\r
import recdblist
import tv2ts
tmppath = configreader.getConfPath("tmp")+"/"
+if not os.path.exists(tmppath):
+ os.mkdir(tmppath)
tssplitterp =configreader.getConfPath("java")+" -jar "+configreader.getConfPath("jTsSplitter")
def searchCh():
rec10d.rec10db.change_installed_in_status(2)
#地上デジタル
- for i in xrange(13,62):#62
+ for i in xrange(13,52):#62
recdblist.printuft8ex(u"チャンネルスキャン:地上デジタル CH "+str(i), 200, 200)
if checkTs(str(i))>0:
addCh(str(i),u"te"+str(i),str(i))
time.sleep(1)
#BSデジタル
recdblist.printuft8ex(u"チャンネルスキャン:BSデジタル ", 200, 200)
- for i in xrange(100,280):#240
+ for i in xrange(100,299):#240
recdblist.printuft8ex(u"チャンネルスキャン:BSデジタル CH "+str(i), 200, 200)
if checkTs(str(i))>0:
addCh(str(i),u"bs","BS")