mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Add report progress for seek
This commit is contained in:
parent
7411501913
commit
7f5084c62e
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue