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._on_play_(data)
elif method == 'Player.OnSeek':
window('emby_command', value="true")
elif method == 'VideoLibrary.OnUpdate':
self._video_update(data)

View File

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