[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
(2015-07-14, 00:34)Alth79 Wrote: Hi, this looks really interesting! I wonder if this can work with my set up. I run kodi on windows 8.1 and have a script that activates batch files to switch between VPNs when opening various addons. I have not been able to make the VPN disconnect when exiting an addon using this script. Could this allow me to disconnect my VPN via .bat file when exiting an addon/returning to main kodi screen? An alternative would be to disconnect the VPN when stopping playback of a stream from within an addon? Cheers for any info

In a nutshell, no. It works only for the events here:
https://github.com/KenV99/service.xbmc.callbacks2/wiki

You could edit the addon scripts that you want use the vpn in by inserting a subprocess call at the start and exit that calls your respective batch files.

https://docs.python.org/2/library/subpro...eck_output
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by KenV99 - 2015-07-14, 00:43
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4