mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
Reset resume on mark watched and unwatched
Emby behavior for manually marking watch state
This commit is contained in:
parent
f422e076a8
commit
d0bee543a1
1 changed files with 6 additions and 6 deletions
|
@ -46,12 +46,12 @@ class WriteKodiVideoDB():
|
||||||
downloadUtils.downloadUrl(watchedurl, type="POST")
|
downloadUtils.downloadUrl(watchedurl, type="POST")
|
||||||
else:
|
else:
|
||||||
downloadUtils.downloadUrl(watchedurl, type="DELETE")
|
downloadUtils.downloadUrl(watchedurl, type="DELETE")
|
||||||
# Erase resume point when user marks unwatched to follow Emby behavior
|
# Erase resume point when user marks unwatched to follow Emby behavior
|
||||||
if type == "episode":
|
if type == "episode":
|
||||||
resume = '{"jsonrpc": "2.0", "method": "VideoLibrary.SetEpisodeDetails", "params": {"episodeid": %d, "resume": {"position": 0}}, "id": "setResumePoint"}' % id
|
resume = '{"jsonrpc": "2.0", "method": "VideoLibrary.SetEpisodeDetails", "params": {"episodeid": %d, "resume": {"position": 0}}, "id": "setResumePoint"}' % id
|
||||||
elif type == "movie":
|
elif type == "movie":
|
||||||
resume = '{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": %d, "resume": {"position": 0}}, "id": "setResumePoint"}' % id
|
resume = '{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": %d, "resume": {"position": 0}}, "id": "setResumePoint"}' % id
|
||||||
xbmc.executeJSONRPC(resume)
|
xbmc.executeJSONRPC(resume)
|
||||||
|
|
||||||
def addOrUpdateMovieToKodiLibrary( self, embyId ,connection, cursor, viewTag):
|
def addOrUpdateMovieToKodiLibrary( self, embyId ,connection, cursor, viewTag):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue