astrXbian/.install/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/actions.py

28 lines
724 B
Python

'''
xbmcswift2.actions
------------------
This module contains wrapper functions for KODI built-in functions.
:copyright: (c) 2012 by Jonathan Beluch
:license: GPLv3, see LICENSE for more details.
'''
def background(url):
'''This action will run an addon in the background for the provided URL.
See 'XBMC.RunPlugin()' at
https://kodi.wiki/index.php?title=List_of_built-in_functions.
'''
return 'XBMC.RunPlugin(%s)' % url
def update_view(url):
'''This action will update the current container view with provided url.
See 'XBMC.Container.Update()' at
https://kodi.wiki/index.php?title=List_of_built-in_functions.
'''
return 'XBMC.Container.Update(%s)' % url