Help, is it possible to monitor contextmenu's events?
#1
Hi, i have an addon which needs to update an API everytime a user marks a video as watched ( or unwatched ).
Couldn't find anything on the docs, does anyone knows if its possible?

Thanks!
Reply
#2
Just wondering... Why does the addon need to be updated when the video library already is being updated?
Have your addon check the video database tables 'files' and the field 'playCount'.
Reply
#3
Here's now it is done in next-eposode addon: https://github.com/santah/next-episode-k...ing.py#L27
Reply
#4
Quote:Just wondering... Why does the addon need to be updated when the video library already is being updated?

Have your addon check the video database tables 'files' and the field 'playCount'.

The addon doesn't need to update itself, only to update an external API.
There are two events that i need to respond to: 
  • The video is finished and kodi mark it as watched
  • User manually clicks on a video and mark it as watched
So, I'm wondering if it wont be easier to just monitor those events instead of syncing my API with the db? not sure here..

Quote:Here's now it is done in next-eposode addon: https://github.com/santah/next-episode-k...ing.py#L27

Exactly what i needed but for some reason doesn't work.
The onNotification event doesn't get called which is weird because a watched mark appears.. any idea why?
Btw, if kodi updates a video automatically (after the video has finished) the event do get called.

Thanks again..
Reply

Logout Mark Read Team Forum Stats Members Help
Help, is it possible to monitor contextmenu's events?0