X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/19308fde806b13a2fbfbe10aaadbaa4a46d35185..c1a12a968b82dccbbc1d9aefed5d79dd1bd2adff:/lib/python/Components/SystemInfo.py diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index a3b83fd9..844c9544 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -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()