diff --git a/jellyfin_kodi/player.py b/jellyfin_kodi/player.py index e8a92985a..bb6a8bea7 100644 --- a/jellyfin_kodi/player.py +++ b/jellyfin_kodi/player.py @@ -326,7 +326,13 @@ def report_playback(self, report=True): if not report: previous = item['CurrentPosition'] - item['CurrentPosition'] = int(self.getTime()) + + try: + item['CurrentPosition'] = int(self.getTime()) + except Exception as e: + # getTime() raises RuntimeError if nothing is playing + LOG.debug("Failed to get playback position: %s", e) + return if int(item['CurrentPosition']) == 1: return