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()