Simple question, with hopefully a simple answer.
I am helping write a plugin which needs to modify its UI when running on an ipad, is there an easy way in python to determine this?
How can you determine that XBMC is running on an iPad in Python?
spoyser
Senior Member Joined: Oct 2011 Reputation: 10 |
2012-03-27 18:13
Post: #1
|
| find quote |
Temhil
Skilled Python Coder Joined: Apr 2008 Reputation: 1 Location: Canada |
2012-03-27 21:08
Post: #2
You can try something like:
Code: import xbmc![]() _____________________________ Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only) ![]() |
| find quote |
bossanova808
Member+ Joined: Sep 2009 Reputation: 20 Location: Melbourne, Australia |
2012-03-28 03:01
Post: #3
Looks liek you can now do it more directly for the various platforms, no?
System.Platform.Linux Returns true if XBMC is running on a linux/unix/osx based computer. System.Platform.Windows Returns true if XBMC is running on a windows based computer. System.Platform.OSX Returns true if XBMC is running on an OSX based computer. System.Platform.IOS Returns true if XBMC is running on an IOS device. System.Platform.ATV2 Returns true if XBMC is running on an atv2. from - http://mirrors.xbmc.org/docs/python-docs/xbmc.html (this thread should really be moved to the addon development section BTW) My XBMC stuff: ...inc:
(This post was last modified: 2012-03-28 03:02 by bossanova808.)
|
| find quote |
spoyser
Senior Member Joined: Oct 2011 Reputation: 10 |
2012-03-28 11:00
Post: #4
@Temhil
Cheers! @bossanova808 That looks like just what I need, cheers for that.
(This post was last modified: 2012-03-28 11:04 by spoyser.)
|
| find quote |
Temhil
Skilled Python Coder Joined: Apr 2008 Reputation: 1 Location: Canada |
2012-03-28 16:53
Post: #5
Thanks for the update bossanova808, I didn't look recently at the API, good to know.
The link is actually not the one above (doc Python) but the wiki: http://wiki.xbmc.org/index.php?title=Lis...Conditions ![]() _____________________________ Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only) ![]()
(This post was last modified: 2012-03-28 16:58 by Temhil.)
|
| find quote |

![[Image: passionxbmc_signature.png]](http://jahnrik.free.fr/passionxbmc_signature.png)
![[Image: project_thin_badge.gif]](http://www.ohloh.net/p/passion-xbmc/widgets/project_thin_badge.gif)
Search
Help