Registering to xbmc events
#1
Hi

I'm totally new to xbmc add-on development (and also relativly new to python).
I managed to write an "hello world" add-on and it works fine.
I searched the documentation but couldn't find any reference to a way that my script can register itself to events (player start, libraray updated, play count changed, etc...)

Could anyone give me a reference to such mechanisim ?

10x
Gilad

p.s.
My add-on is a script that start on xbmc startup.
Reply
#2
http://mirrors.xbmc.org/docs/python-docs/

example script:
http://mirrors.xbmc.org/addons/frodo/script.watchlist/
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
Thank you for the (extream) fast answer

So this might be a stupid question,
but in case I want to react to changes in the db then I need to extend the Monitor class (http://mirrors.xbmc.org/docs/python-docs...ml#Monitor)
and implement the relevant methods ?

10x
Reply
#4
Yes but not sure if it will always trigger that event.
Just try and find out Smile
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply

Logout Mark Read Team Forum Stats Members Help
Registering to xbmc events0