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

View file

@ -326,7 +326,11 @@ class Player(xbmc.Player):
if not report: if not report:
previous = item['CurrentPosition'] previous = item['CurrentPosition']
try:
item['CurrentPosition'] = int(self.getTime()) 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