OSDN Git Service

fix some bugs.
[rec10/rec10-git.git] / 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")