aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-03-10 21:08:12 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-03-10 21:08:12 +0000
commit9f9398866adac30930d3d485e03d7810309461a9 (patch)
tree426fc3182040f40e43df658598fc6923a1c9694e /lib/python/Components
parentb44140e41f6ddaa1094e181c3de6aca183f0a48b (diff)
downloadenigma2-9f9398866adac30930d3d485e03d7810309461a9.tar.gz
enigma2-9f9398866adac30930d3d485e03d7810309461a9.zip
dont show pip options in extension menu when no pip is available
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/SystemInfo.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py
index a3b83fd9..f33a8552 100644
--- a/lib/python/Components/SystemInfo.py
+++ b/lib/python/Components/SystemInfo.py
@@ -1 +1,10 @@
-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
+
+SystemInfo["NumVideoDecoders"] = getNumVideoDecoders()