From 83bd87859ccc47a5511089ac69fa015cc9e29eaa Mon Sep 17 00:00:00 2001 From: kos Date: Fri, 10 Jan 2014 15:36:38 +0900 Subject: [PATCH] [hbbtv] fixed a wrong red-button url bug. --- lib/python/Plugins/Extensions/HbbTV/plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/python/Plugins/Extensions/HbbTV/plugin.py b/lib/python/Plugins/Extensions/HbbTV/plugin.py index 70a2ec3..5570433 100644 --- a/lib/python/Plugins/Extensions/HbbTV/plugin.py +++ b/lib/python/Plugins/Extensions/HbbTV/plugin.py @@ -1108,8 +1108,10 @@ class HbbTVHelper(Screen, InfoBarNotifications): def getStartHbbTVUrl(self): url, self._profile = None, 0 if self._applicationList is not None: - self._profile = self._applicationList[0]["profile"] - url = self._applicationList[0]["url"] + for u in self._applicationList: + if u["control"] in (1, -1): + url = u["url"] + self._profile = u["profile"] if url is None: service = self._session.nav.getCurrentService() info = service and service.info() -- 2.7.4