(2015-11-11 12:44)schumi2004 Wrote: Would it be possible to have this script to react on certain addon actions only?
For example only kick in when Retrospect stream stops playing instead of all (local and remote) media?
Or on http or rtmp streams only?
As stated many times in this thread:
The only events that can be easily coded are those built into the Python api (see Monitor and Player sections): see http://mirrors.kodi.tv/docs/python-docs/...ml#Monitor
So in short, no, plugin starts and stops cannot be used as triggers.
The long version is: IF Retrospect uses the builtin player AND this Addon detects starts and stops you can try to detect that whatever was playing was a Retrospect stream by looking at whatever info the addon puts out about whatever was playing - i.e. 'playing type' should be stream.
Or edit the Retrospect Plugin calling your script on starts and stops.
I don't use that Plugin so I can't test for you.
Unfortunately developing something specific like this requires several hours of coding and testing and I just don't have the time. If you have any python experience at all, start with looking if you can create a monitor loop with the JSON api. I would do a JSON introspect to start and see if there is anything about plugin starts and stops. If nothing looks promising there (doubtful there is, but always worth a shot), look in the kodi log and see if there is anything that uniquely identifies that plugin's starts and stops. If so, the messy hack is to write a loop that constantly reads in the last few lines of the log and then check if there is a regex match for the 'signature' of either the start or stop of your plugin.