Mark (local) episode as watched when playing next
This PR includes:
- Mark the current episode as watched
- ~Reset resume position of the next episode before playing~
This fixes #64 for local media.
Even though I have seen this a few times now, I can't seem to reproduce this. Neither for local media, as for add-ons. So don't merge this PR unless I can reproduce this again.
This is now confirmed to be working. With the new settings we can actually use a large notification time (i.e. 60 secs) for very short episode (e.g. 7 mins) to easily test this.
The default cutoff time for Marking as Watched is 8% which would be 32 secs for a 7 min episode. So if you would click on "Watch Now" the current episode would not be marked as watched, but be marked as unfinished.
This is now fixed, and on top of that, batched JSONRPC queries work as well and are very efficient.
I've just noticed that I've been having this problem, too - I'm looking forward to turning on this PR
@notoco This is just for local media, we are waiting for changes in Kodi (see xbmc/xbmc#17202) to be accepted. That would allow us to do the same for VOD content (plugin:// URLs). Which would be a neat feature for Up Next to have!