mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-17 14:55:08 +00:00
fix playback report
This commit is contained in:
parent
93525652ae
commit
68bf8655f3
4 changed files with 9 additions and 25 deletions
|
@ -378,9 +378,8 @@ class Player(xbmc.Player):
|
|||
data['SubtitleStreamIndex'], postdata['SubtitleStreamIndex'] = [""] * 2
|
||||
|
||||
# Report progress via websocketclient
|
||||
postdata = json.dumps(postdata)
|
||||
log.debug("Report: %s" % postdata)
|
||||
self.ws.send_progress_update(postdata)
|
||||
log.debug("Report: %s", postdata)
|
||||
self.emby.progress_report(postdata)
|
||||
|
||||
@log_error()
|
||||
def onPlayBackPaused(self):
|
||||
|
@ -528,7 +527,7 @@ class Player(xbmc.Player):
|
|||
|
||||
def stop_playback(self, data):
|
||||
|
||||
log.debug("stop playback called.")
|
||||
log.info("stop playback called.")
|
||||
|
||||
position_ticks = int(data['currentPosition'] * 10000000)
|
||||
position = data['runtime'] if position_ticks and window('emby.external') else position_ticks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue