mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Additional logging for the watched status
This in combination with the websocket message should be enough for us to know where the problem lies.
This commit is contained in:
parent
682f9418af
commit
1c5bbe0b71
1 changed files with 2 additions and 0 deletions
|
@ -63,8 +63,10 @@ class WriteKodiVideoDB():
|
||||||
watchedurl = "{server}/mediabrowser/Users/{UserId}/PlayedItems/%s" % emby_id
|
watchedurl = "{server}/mediabrowser/Users/{UserId}/PlayedItems/%s" % emby_id
|
||||||
if playcount != 0:
|
if playcount != 0:
|
||||||
doUtils.downloadUrl(watchedurl, type = "POST")
|
doUtils.downloadUrl(watchedurl, type = "POST")
|
||||||
|
self.logMsg("Mark as watched for Id: %s, playcount: %s." % (emby_id, playcount), 1)
|
||||||
else:
|
else:
|
||||||
doUtils.downloadUrl(watchedurl, type = "DELETE")
|
doUtils.downloadUrl(watchedurl, type = "DELETE")
|
||||||
|
self.logMsg("Mark as unwatched for Id: %s, playcount: %s." % (emby_id, playcount), 1)
|
||||||
# Erase any resume point associated
|
# Erase any resume point associated
|
||||||
self.setKodiResumePoint(id, 0, 0, cursor)
|
self.setKodiResumePoint(id, 0, 0, cursor)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue