From 1c5bbe0b71caea015fe08fc8ff674cb688a431d1 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 22 Jul 2015 22:06:17 -0500 Subject: [PATCH] Additional logging for the watched status This in combination with the websocket message should be enough for us to know where the problem lies. --- resources/lib/WriteKodiVideoDB.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/WriteKodiVideoDB.py b/resources/lib/WriteKodiVideoDB.py index 772996f8..fbf5d84a 100644 --- a/resources/lib/WriteKodiVideoDB.py +++ b/resources/lib/WriteKodiVideoDB.py @@ -63,8 +63,10 @@ class WriteKodiVideoDB(): watchedurl = "{server}/mediabrowser/Users/{UserId}/PlayedItems/%s" % emby_id if playcount != 0: doUtils.downloadUrl(watchedurl, type = "POST") + self.logMsg("Mark as watched for Id: %s, playcount: %s." % (emby_id, playcount), 1) else: doUtils.downloadUrl(watchedurl, type = "DELETE") + self.logMsg("Mark as unwatched for Id: %s, playcount: %s." % (emby_id, playcount), 1) # Erase any resume point associated self.setKodiResumePoint(id, 0, 0, cursor) finally: