OSDN Git Service

fix some bugs.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 1 Oct 2011 13:25:13 +0000 (13:25 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 1 Oct 2011 13:25:13 +0000 (13:25 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@868 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/scan_ch.py

index c34347a..5b79cf2 100644 (file)
@@ -26,7 +26,7 @@ def searchCh():
     time.sleep(1)
     #BSデジタル
     recdblist.printuft8ex(u"チャンネルスキャン:BSデジタル ", 200, 200)
-    for i in xrange(100,240):#240
+    for i in xrange(100,280):#240
         recdblist.printuft8ex(u"チャンネルスキャン:BSデジタル CH "+str(i), 200, 200)
         if checkTs(str(i))>0:
             addCh(str(i),u"bs","BS")
@@ -153,5 +153,6 @@ def checkB25Purchased(ch,logtxt):
     upl=getB25UnparchasedList(logtxt)
     if len(upl)>0 and len(chlists)>0:
         for chl in chlists:
-            if chl['csch'] in upl:
-                chdb.changeCHShow(chl['chtxt'],"0")
+            if chl != None:
+                if chl['csch'] in upl:
+                    chdb.changeCHShow(chl['chtxt'],"0")