[hbbtv] fix check vuplus
authorsmlee <smlee@dev3>
Thu, 16 Jan 2014 05:28:23 +0000 (14:28 +0900)
committersmlee <smlee@dev3>
Thu, 16 Jan 2014 05:28:23 +0000 (14:28 +0900)
lib/python/Components/Sources/HbbtvApplication.py
lib/python/Plugins/Extensions/HbbTV/plugin.py

index 211e87f..0dca7e4 100644 (file)
@@ -6,6 +6,7 @@ class HbbtvApplication(Source):
                Source.__init__(self)
                self._available = False
                self._appname = ""
+               self._useait = True
 
        def setApplicationName(self, name):
                self._appname = name
@@ -14,6 +15,9 @@ class HbbtvApplication(Source):
                        self._available = True
                self.changed((self.CHANGED_ALL,))
 
+       def getUseAit(self):
+               return self._useait
+
        @cached
        def getBoolean(self):
                return self._available
index e346d3f..50fa8fc 100644 (file)
@@ -999,10 +999,11 @@ class HbbTVHelper(Screen, InfoBarNotifications):
                        })
                self._applicationList = None
 
-               self.mVuplusBox = False
-               issue = open("/etc/issue").read()
-               if(issue.startswith("Vuplus")):
-                       self.mVuplusBox = True
+               try:
+                       from Screens.InfoBarGenerics import gHbbtvApplication
+                       self.mVuplusBox = gHbbtvApplication.getUseAit()
+               except:
+                       self.mVuplusBox = False
 
        def _cb_detectedAIT(self):
                name = self._cb_ready_for_ait()