pigskin / kodi-gamepass

NFL Game Pass add-on for Kodi
Other
122 stars 83 forks source link

Support external script call on start / quit #2

Closed Davst closed 11 years ago

Davst commented 11 years ago

I use gamepass regularly, though to use it I run through a VPN.

It would be great if you could include a startup and a shutdown call to a external command or script in this plugin. That way my VPN could auto-start when I go into Gamepass and it could Disconnect when I leave Gamepass

aqw commented 11 years ago

I'll see if/how this is possible with XBMC's plugin structure. However, I'm leaving on vacation later today for a week, so I won't have time to look at this until I get back.

---Alex

aqw commented 11 years ago

I had some time to look into this a bit. While it is easy to launch a script when initially starting the add-on, I don't see any callbacks that XBMC exposes when exiting a given add-on, and I'm not sure it's even possible given the way XBMC executes add-ons.

Do you know of any other add-ons which have this feature?

---Alex

aqw commented 11 years ago

Closing, as I don't see any clear way to have a call-back when leaving the addon.