OSDN Git Service

fix logo import bugs.
[rec10/rec10-git.git] / rec10 / trunk / src / chdb.py
index bfea9a4..65133fa 100644 (file)
@@ -83,10 +83,19 @@ def updateLogo():
     ret=[]
     BSCSUpdate=0
     for datum in rec10d.rec10db.select_get_updatelogo_epg_ch("720"):
-        bctype=datus[0]
+        bctype=datum[0]
         if bctype == "cs1" or bctype == u"cs1":
-            ret.append(u"bs")
-            BSCSUpdate=1
+            if BSCSUpdate==0:
+                ret.append(u"bs")
+                BSCSUpdate=1
+        elif bctype == "cs2" or bctype == u"cs2":
+            if BSCSUpdate==0:
+                ret.append(u"bs")
+                BSCSUpdate=1
+        elif bctype == "bs" or bctype == u"bs":
+            if BSCSUpdate==0:
+                ret.append(u"bs")
+                BSCSUpdate=1
         else:
             ret.append(bctype)
     return ret