add-ons / add-ons/plugin.video.vrt.nu

Unable to get/set video position in Kodi database

Open
#568 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement kodi merged
Dominant language
Python
Stars
125
Forks
27
Avg merge
3h 46m
Merged PRs (30d)
12

Description

Describe the feature

Since the VOD provider (VRT NU) stores the position of a stream and watch-status in its infrastructure (among other things) and we would like to integrate with this so users can continue watching from Kodi, or from their smartphone, or web-browser, we have the need to update a stream's position in the Kodi database.

We currently set the position and watch-status while generating the listing in Kodi, however this has the nasty downside that we have to controle when the listing is regenerated (i.e. after a stream has been played, or played partly). This does not give a good user experience.

The other downside currently is that the context-menu items Reset resume position and Mark as watched/unwatched do not work as we cannot intercept this event to update the position online.

The obvious solution is to use Files.GetFileDetails and Files.SetFileDetails JSON-RPC calls to synchronize resumeposition and playcount information, however these calls are not supported for 'plugin://'-type resources so they are not useful for add-on developers. xbmc/xbmc#15897

The proposed fix is simple but got rejected: xbmc/xbmc#16087

As a result the current implementation of resumepoints works but with various quirks and issues.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the add-on's current resumepoint and watch-status handling, then read the referenced Kodi issues #15897 and #16087 about Files.GetFileDetails and Files.SetFileDetails for plugin:// resources. Done would require a supported way to synchronize resumeposition and playcount without relying on listing regeneration, but the required Kodi change was previously rejected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.