aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/ServiceInfo.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/python/Screens/ServiceInfo.py b/lib/python/Screens/ServiceInfo.py
index c05bd25e..5973ec20 100644
--- a/lib/python/Screens/ServiceInfo.py
+++ b/lib/python/Screens/ServiceInfo.py
@@ -106,11 +106,19 @@ class ServiceInfo(Screen):
aspect = "4:3"
else:
aspect = "16:9"
- Labels = ( ("Name", name, TYPE_TEXT),
- ("Provider", self.getServiceInfoValue(iServiceInformation.sProvider), TYPE_TEXT),
- ("Videoformat", aspect, TYPE_TEXT),
- ("Videosize", "%dx%d" %(self.getServiceInfoValue(iServiceInformation.sVideoWidth), self.getServiceInfoValue(iServiceInformation.sVideoHeight)), TYPE_TEXT),
- ("Namespace", self.getServiceInfoValue(iServiceInformation.sNamespace), TYPE_VALUE_HEX, 8))
+ width = self.info.getInfo(iServiceInformation.sVideoWidth)
+ height = self.info.getInfo(iServiceInformation.sVideoHeight)
+ if width != -1 and height != -1:
+ Labels = ( ("Name", name, TYPE_TEXT),
+ ("Provider", self.getServiceInfoValue(iServiceInformation.sProvider), TYPE_TEXT),
+ ("Videoformat", aspect, TYPE_TEXT),
+ ("Videosize", "%dx%d" %(width, height), TYPE_TEXT),
+ ("Namespace", self.getServiceInfoValue(iServiceInformation.sNamespace), TYPE_VALUE_HEX, 8))
+ else:
+ Labels = ( ("Name", name, TYPE_TEXT),
+ ("Provider", self.getServiceInfoValue(iServiceInformation.sProvider), TYPE_TEXT),
+ ("Videoformat", aspect, TYPE_TEXT),
+ ("Namespace", self.getServiceInfoValue(iServiceInformation.sNamespace), TYPE_VALUE_HEX, 8))
self.fillList(Labels)
else:
if self.transponder_info: