do not create files when checking for existence...
[enigma2.git] / lib / python / Components / SystemInfo.py
index a3b83fd99f3d8181a4687933c2f5041568916d59..506633242b9908bf5aa5cbd696e95f5ed7c37249 100644 (file)
@@ -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()