Play images and video from Synology PhotoStation server

actions.py 884B

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- coding: utf-8 -*-
  2. """
  3. kodiswift.actions
  4. ------------------
  5. This module contains wrapper functions for Kodi built-in functions.
  6. :copyright: (c) 2012 by Jonathan Beluch
  7. :license: GPLv3, see LICENSE for more details.
  8. """
  9. __all__ = ['background', 'update_view']
  10. def background(url):
  11. """This action will run an addon in the background for the provided URL.
  12. See 'RunPlugin()' at
  13. http://kodi.wiki/view/List_of_built-in_functions
  14. Args:
  15. url (str): Full path must be specified.
  16. Does not work for folder plugins.
  17. Returns:
  18. str: String of the builtin command
  19. """
  20. return 'RunPlugin(%s)' % url
  21. def update_view(url):
  22. """This action will update the current container view with provided url.
  23. See 'Container.Update()' at
  24. http://kodi.wiki/view/List_of_built-in_functions
  25. """
  26. return 'Container.Update(%s)' % url