X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FSystemInfo.py;fp=lib%2Fpython%2FComponents%2FSystemInfo.py;h=f33a8552991fd2eed842ca7c7fa4d590556e54be;hp=a3b83fd99f3d8181a4687933c2f5041568916d59;hb=9f9398866adac30930d3d485e03d7810309461a9;hpb=b44140e41f6ddaa1094e181c3de6aca183f0a48b diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index a3b83fd..f33a855 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()