From 7f5084c62e73c306d235147c7f51ee455093ba6b Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 15 Aug 2018 21:49:33 -0500 Subject: [PATCH] Add report progress for seek --- resources/lib/kodimonitor.py | 3 +++ resources/lib/service_entry.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index 93d5b48a..d9e763d2 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -85,6 +85,9 @@ class KodiMonitor(xbmc.Monitor): self.retry = True self._on_play_(data) + elif method == 'Player.OnSeek': + window('emby_command', value="true") + elif method == 'VideoLibrary.OnUpdate': self._video_update(data) diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index 2f97f85f..e7c1b805 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -294,7 +294,8 @@ class Service(object): difference_seconds = difference.seconds # Ping session every 4-5 minutes - if difference_seconds > 270: + if difference_seconds > 270 and window('emby_command') == "true": + window('emby_command', clear=True) kodi_player.reportPlayback() self.last_progress = datetime.today()