do not create files when checking for existence...
[enigma2.git] / lib / python / Components / SystemInfo.py
index 844c9544a1fae4965bb6f31db8821ae2247a89a5..506633242b9908bf5aa5cbd696e95f5ed7c37249 100644 (file)
@@ -1,11 +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), 'r'):
                idx += 1
        return idx
 
 SystemInfo["NumVideoDecoders"] = getNumVideoDecoders()
+SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()