mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix seek detection
onPlayBackSeek seems to not trigger in Leia. Use monitor event Player.OnAVChange.
This commit is contained in:
parent
3da0ab5b24
commit
ea97465050
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ class Monitor(xbmc.Monitor):
|
||||||
|
|
||||||
data = json.loads(data)[0]
|
data = json.loads(data)[0]
|
||||||
else:
|
else:
|
||||||
if method not in ('Player.OnPlay', 'VideoLibrary.OnUpdate', 'System.OnSleep'):
|
if method not in ('Player.OnPlay', 'VideoLibrary.OnUpdate', 'System.OnSleep', 'Player.OnAVChange'):
|
||||||
return
|
return
|
||||||
|
|
||||||
data = json.loads(data)
|
data = json.loads(data)
|
||||||
|
@ -196,8 +196,8 @@ class Monitor(xbmc.Monitor):
|
||||||
data.get('StartPositionTicks', 0), data.get('AudioStreamIndex'),
|
data.get('StartPositionTicks', 0), data.get('AudioStreamIndex'),
|
||||||
data.get('SubtitleStreamIndex')).start()
|
data.get('SubtitleStreamIndex')).start()
|
||||||
|
|
||||||
elif method == 'ReportProgressRequested':
|
elif method in ('ReportProgressRequested', 'Player.OnAVChange'):
|
||||||
self.player.report_playback(data['Report'])
|
self.player.report_playback(data.get('Report', True))
|
||||||
|
|
||||||
elif method == 'Playstate':
|
elif method == 'Playstate':
|
||||||
self.playstate(data)
|
self.playstate(data)
|
||||||
|
|
Loading…
Reference in a new issue