Add report progress for seek

This commit is contained in:
angelblue05 2018-08-15 21:49:33 -05:00
parent 7411501913
commit 7f5084c62e
2 changed files with 5 additions and 1 deletions

View file

@ -85,6 +85,9 @@ class KodiMonitor(xbmc.Monitor):
self.retry = True self.retry = True
self._on_play_(data) self._on_play_(data)
elif method == 'Player.OnSeek':
window('emby_command', value="true")
elif method == 'VideoLibrary.OnUpdate': elif method == 'VideoLibrary.OnUpdate':
self._video_update(data) self._video_update(data)

View file

@ -294,7 +294,8 @@ class Service(object):
difference_seconds = difference.seconds difference_seconds = difference.seconds
# Ping session every 4-5 minutes # 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() kodi_player.reportPlayback()
self.last_progress = datetime.today() self.last_progress = datetime.today()