mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix uncaught exception in Player.report_playback()
This commit is contained in:
parent
e95e8d6a88
commit
064a02ad3c
1 changed files with 5 additions and 1 deletions
|
@ -326,7 +326,11 @@ class Player(xbmc.Player):
|
||||||
if not report:
|
if not report:
|
||||||
|
|
||||||
previous = item['CurrentPosition']
|
previous = item['CurrentPosition']
|
||||||
item['CurrentPosition'] = int(self.getTime())
|
|
||||||
|
try:
|
||||||
|
item['CurrentPosition'] = int(self.getTime())
|
||||||
|
except Exception: # at this point we should be playing and if not then bail out
|
||||||
|
return
|
||||||
|
|
||||||
if int(item['CurrentPosition']) == 1:
|
if int(item['CurrentPosition']) == 1:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue