2013-01-13, 04:32
Is there any way to get a service addon to restart its self when the addon manager detects and downloads an update?
(2013-01-13, 05:02)ronie Wrote: as far as i know, this is not implemented yet.
<extension point="xbmc.service"
library_linux="foo.py"
library_osx="bar.py"
library_android="foobar.py"
start="login"/>
def get_platform():
if xbmc.getCondVisibility('system.platform.osx'):
platform = "osx"
elif xbmc.getCondVisibility('system.platform.windows'):
platform = "win32"
elif xbmc.getCondVisibility('system.platform.ios'):
platform = "ios"
else:
platform = "linux"
(2013-01-13, 05:41)ronie Wrote: i'd say this should work:What I mean by architecture is arm, i686, or x86_64. My addon is linux only. Right now I'm using python platform to detect the arch. I placed all of the different arch binaries in one folder and copy over the proper one.
Code:<extension point="xbmc.service"
library_linux="foo.py"
library_osx="bar.py"
library_android="foobar.py"
start="login"/>
or detect the platform within your addon:
Code:def get_platform():
if xbmc.getCondVisibility('system.platform.osx'):
platform = "osx"
elif xbmc.getCondVisibility('system.platform.windows'):
platform = "win32"
elif xbmc.getCondVisibility('system.platform.ios'):
platform = "ios"
else:
platform = "linux"