aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <felix.domke@multimedia-labs.de>2009-08-27 12:06:03 +0200
committerFelix Domke <felix.domke@multimedia-labs.de>2009-08-27 12:06:03 +0200
commit17ce0c30d39a197c49c9a2945e4e5cff53317aa4 (patch)
tree6465e6d6345c97af3e2b87051e4095551d3d5a05 /lib/python/Components
parent8595b3d7a8a2b93d55dda268d9ee0c50640461b0 (diff)
downloadenigma2-17ce0c30d39a197c49c9a2945e4e5cff53317aa4.tar.gz
enigma2-17ce0c30d39a197c49c9a2945e4e5cff53317aa4.zip
add ' fps'
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Converter/ServiceInfo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/Converter/ServiceInfo.py b/lib/python/Components/Converter/ServiceInfo.py
index 461a0461..5014fde6 100644
--- a/lib/python/Components/Converter/ServiceInfo.py
+++ b/lib/python/Components/Converter/ServiceInfo.py
@@ -42,13 +42,13 @@ class ServiceInfo(Converter, object):
"Framerate": (self.FRAMERATE, (iPlayableService.evVideoSizeChanged,iPlayableService.evUpdatedInfo,)),
}[type]
- def getServiceInfoString(self, info, what, convert = lambda x: x):
+ def getServiceInfoString(self, info, what, convert = lambda x: "%d" % x):
v = info.getInfo(what)
if v == -1:
return "N/A"
if v == -2:
return info.getInfoString(what)
- return "%d" % convert(v)
+ return convert(v)
@cached
def getBoolean(self):
@@ -111,7 +111,7 @@ class ServiceInfo(Converter, object):
elif self.type == self.SID:
return self.getServiceInfoString(info, iServiceInformation.sSID)
elif self.type == self.FRAMERATE:
- return self.getServiceInfoString(info, iServiceInformation.sFrameRate, lambda x: (x+500)/1000)
+ return self.getServiceInfoString(info, iServiceInformation.sFrameRate, lambda x: "%d fps" % ((x+500)/1000))
return ""
text = property(getText)