event on favourite add/delete
#1
Hello, from an add-on is there a way to receive an event when a favourite is added or removed ? thxs.
Reply
#2
can you elaborate a bit more? I have done add/remove favorite in one of my addon.
Reply
#3
I would like to write an add-on which when a user add/delete a favourite would call an url. subscription management to receive an email when new content is added to that favourite.
Reply
#4
Database triggers aren't implemented in Kodi. Takoi's watchdog addon is closests what you get. So writing custom crud events on the favorite table with python is the most easy solution.

Making this a generic solution would be a killer addon. It would get rid of many addons if users can setup if-this-than-that scenario's. Having those triggers on filesystem (sysevents and polling) and database level (CRUD) would give endless possibilities with your library.
Reply

Logout Mark Read Team Forum Stats Members Help
event on favourite add/delete0