X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FSystemInfo.py;h=d074c41407ced50ebea7bc509bfc4ddbf1cdf19a;hb=1534ee3d4679bf797a153783d86c14d59cd596b8;hp=a3b83fd99f3d8181a4687933c2f5041568916d59;hpb=19308fde806b13a2fbfbe10aaadbaa4a46d35185;p=vuplus_dvbapp diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index a3b83fd..d074c41 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -1 +1,14 @@ -SystemInfo = { } \ No newline at end of file +from enigma import eDVBResourceManager + +SystemInfo = { } + +#FIXMEE... +def getNumVideoDecoders(): + from Tools.Directories import fileExists + idx = 0 + while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'f'): + idx += 1 + return idx + +SystemInfo["NumVideoDecoders"] = getNumVideoDecoders() +SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()