Follow up, Version bump 0.1.88

Added Emby behavior in Kodi - when marking unwatched, also erase any
resume point.
This commit is contained in:
angelblue05 2015-05-17 02:08:18 -05:00
parent a65379b0d1
commit f422e076a8
3 changed files with 9 additions and 4 deletions

View file

@ -46,6 +46,12 @@ class WriteKodiVideoDB():
downloadUtils.downloadUrl(watchedurl, type="POST")
else:
downloadUtils.downloadUrl(watchedurl, type="DELETE")
# Erase resume point when user marks unwatched to follow Emby behavior
if type == "episode":
resume = '{"jsonrpc": "2.0", "method": "VideoLibrary.SetEpisodeDetails", "params": {"episodeid": %d, "resume": {"position": 0}}, "id": "setResumePoint"}' % id
elif type == "movie":
resume = '{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": %d, "resume": {"position": 0}}, "id": "setResumePoint"}' % id
xbmc.executeJSONRPC(resume)
def addOrUpdateMovieToKodiLibrary( self, embyId ,connection, cursor, viewTag):