c3c8ff361022f68024f50be3780cc8005e06fa6b
[openblackhole/openblackhole-enigma2.git] / lib / python / Components / SystemInfo.py
1 from enigma import eDVBResourceManager
2
3 SystemInfo = { }
4
5 #FIXMEE...
6 def getNumVideoDecoders():
7         from Tools.Directories import fileExists
8         idx = 0
9         while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'w'):
10                 idx += 1
11         return idx
12
13 SystemInfo["NumVideoDecoders"] = getNumVideoDecoders()
14 SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()