add-ons / plugin.video.vtm.go

Kodi add-on to watch video-on-demand content and live streams from VTM GO.
https://github.com/add-ons/plugin.video.vtm.go/wiki
GNU General Public License v3.0
78 stars 26 forks source link

Implement tracking of watched items #4

Open michaelarnauts opened 5 years ago

michaelarnauts commented 5 years ago

The VTM GO API has endpoints to say that you've watched something. We should integrate this with Kodi.

dagwieers commented 5 years ago

When I played an episode, it was immediately flagged as watched, while I only watched the first few minutes. This is not the expected Kodi behaviour. (In fact, the addon should not indicate something was watched, Kodi handles this itself by URI).

michaelarnauts commented 5 years ago

I would like to sync this to the API of medialaan, so stuff you have seen on Kodi is also marked as seen in their mobile app.

You can even push the timestamp where you are to the API, so you can continue watching on the app when stopping in Kodi for example.

dagwieers commented 5 years ago

VRT also can track where you are when watching, but we did not implement it yet. Not sure if it is that useful. I have my Kodi boxes connected to a MySQL, so they do this already, and Kodi tracks this for local media, but usually the kids watch the same stuff on the same device, so not that useful.

The fact that all our devices in the house indicate what has been watched already is very useful.

michaelarnauts commented 5 years ago

I think the stream is immediately marked as watched since Kodi doesn't seem to know how long the stream lasts (it does in the metadata, but not in the stream). You can also notice this since you can't seek in the stream. If this is fixed, I assume Kodi will keep track of the played time correctly.

This issue is an enhancement to also send this information over to the API, so that the mobile app has the same state.

dagwieers commented 5 years ago

Correct, I noticed the same thing. When I stopped the stream, it assumed the media ended and that was its length.