Function to detect xbmc version
#1
Hi all,

Sorry for the noob question but I've been googling it and couldn't find any relevant info about it. What is the default function to detect the xbmc version. For instance:

If version == "eden" --> something
if version == "frodo" --> something


It would also be great to know how to detect the platform like atv1, atv2, iOs, etc.

Thanks in advance
Reply
#2
If version == "eden" --> splash screen says Eden when you launch it.
I don't even understand the second question. You mean if you are using an ATV1, how can you tell?!
Reply
#3
(2013-03-04, 22:19)Jmhthefirst Wrote: If version == "eden" --> splash screen says Eden when you launch it.
I don't even understand the second question. You mean if you are using an ATV1, how can you tell?!

I meant a function to detect the xbmc version. I've found it already: xbmc.getInfoLabel('system.buildversion')
Now I'm looking forward to find how to do the same thing but with the platform which is running xbmc
Reply
#4
How about: http://docs.python.org/2/library/platform.html ?
Reply
#5
You're looking for this: http://mirrors.xbmc.org/docs/python-docs...Visibility and the System.Platform.X section of http://wiki.xbmc.org/?title=List_of_Boolean_Conditions
Reply
#6
Thanks both! That made the trick Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Function to detect xbmc version0