diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-03-10 21:08:12 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-03-10 21:08:12 +0000 |
| commit | 9f9398866adac30930d3d485e03d7810309461a9 (patch) | |
| tree | 426fc3182040f40e43df658598fc6923a1c9694e /lib/python/Components | |
| parent | b44140e41f6ddaa1094e181c3de6aca183f0a48b (diff) | |
| download | enigma2-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.py | 11 |
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() |
