add 'progress' source, 'progress to text' converter
[enigma2.git] / lib / python / Components / SystemInfo.py
index a3b83fd99f3d8181a4687933c2f5041568916d59..844c9544a1fae4965bb6f31db8821ae2247a89a5 100644 (file)
@@ -1 +1,11 @@
-SystemInfo = { }
\ No newline at end of file
+SystemInfo = { }
+
+#FIXMEE...
+def getNumVideoDecoders():
+       from Tools.Directories import fileExists
+       idx = 0
+       while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'w'):
+               idx += 1
+       return idx
+
+SystemInfo["NumVideoDecoders"] = getNumVideoDecoders()