From c5a374128953a46042d94fbfe63cadfe731885c1 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 1 Feb 2018 07:15:22 +0100 Subject: [PATCH] Fix Kodi player seeking too often --- resources/lib/playback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/playback.py b/resources/lib/playback.py index 1faebebf..c80ebc7a 100644 --- a/resources/lib/playback.py +++ b/resources/lib/playback.py @@ -381,13 +381,13 @@ def play_xml(playqueue, xml, offset=None): thread.start() -def threaded_playback(kodi_playlist, startpos, offset): +def threaded_playback(kodi_playlist, startpos, offset=None): """ Seek immediately after kicking off playback is not reliable. """ player = Player() player.play(kodi_playlist, None, False, startpos) - if offset: + if offset and if offset != '0': i = 0 while not player.isPlaying(): sleep(100)