OSDN Git Service

add recovery write recque mode.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 2 Oct 2011 00:03:05 +0000 (00:03 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 2 Oct 2011 00:03:05 +0000 (00:03 +0000)
expand bs channel.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@869 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/epgdb.py
rec10/trunk/src/readme.txt
rec10/trunk/src/recque.py
rec10/trunk/src/scan_ch.py

index 34f1865..f0bfaf6 100644 (file)
@@ -20,6 +20,8 @@ path = str(os.path.dirname(os.path.abspath(__file__))) + "/"
 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
index c85ce72..8087507 100644 (file)
@@ -9,7 +9,7 @@
 ライセンスは LGPL v3に準拠します(license.txt参照)
 
 [必要コマンド]
-python(2.6にて動作確認)
+python(2.6,2.7にて動作確認)
 wine
 mencoder
 ffmpeg
@@ -28,12 +28,18 @@ perl
 jTsSplitter(included)
 BonTsDemux(included)
 epgdump(included)
-b25(non-included)
-recpt1(recfriioでもいいはずです)(non-included)
+b25(noincluded)
+recpt1(recfriioでもいいはずです)(noincluded)
 MySQLdb
+
 事前準備:
-pt1などのドライバーをインストールした上で、recpt1などのソフトを導入、
+ネットの情報を参考にpt1ドライバーを無効化する
+pt1などのドライバーをインストールした上(chardev版)で、recpt1などのソフトを導入、
 b25をインストールしておいてください。
+*注意
+11年10月01日からのBS新チャンネル対応のためには、10/02現在ではrecpt1にパッチを当てる必要があります。
+rec10同梱版のepgrecはts解析によってチャンネルデータを得るように改変してあるので
+変更は不要です。
 
 1:install.shを実行
 2:表示にしたがって設定の変更(チャンネルなど)
@@ -92,6 +98,7 @@ epggenreを追加
 keywordの重複チェックをより賢く
 logoのインポートに対応
 ArchLinuxサポートのための細かな変更
+新BSチャンネル対応
 
 11/02/02 0.9.9
 BonTsDemuxを最新版へ(nogui化によりXvfbが不要)
index b80c424..64be4a8 100644 (file)
@@ -12,8 +12,13 @@ import traceback
 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
@@ -21,7 +26,18 @@ def writeRecQue(parentpath,chtxt,title,opts):
     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
index 5b79cf2..377c19b 100644 (file)
@@ -15,18 +15,20 @@ import configreader
 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")