Fix uncaught exception in Player.report_playback()

This commit is contained in:
Peter Fern 2023-11-21 17:07:36 +11:00
parent e95e8d6a88
commit 064a02ad3c
1 changed files with 5 additions and 1 deletions

View File

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