X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/19308fde806b13a2fbfbe10aaadbaa4a46d35185..7caa114b900d8cac5c57e59df971da9280112a1f:/lib/python/Components/SystemInfo.py diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index a3b83fd9..50663324 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), 'r'): + idx += 1 + return idx + +SystemInfo["NumVideoDecoders"] = getNumVideoDecoders() +SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()