X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/9f9398866adac30930d3d485e03d7810309461a9..67b8794397ca2ac4e05c59fc417456f4d4cac8f0:/lib/python/Components/SystemInfo.py diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index f33a8552..d074c414 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -1,10 +1,14 @@ +from enigma import eDVBResourceManager + SystemInfo = { } #FIXMEE... def getNumVideoDecoders(): from Tools.Directories import fileExists idx = 0 - while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'w'): + while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'f'): idx += 1 + return idx SystemInfo["NumVideoDecoders"] = getNumVideoDecoders() +SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()