From 6cba4a1d012659e626911534a243466a35cc76d0 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 26 May 2019 17:56:16 +0200 Subject: [PATCH] Fix playback startup for Plex Companion --- resources/lib/webservice.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/lib/webservice.py b/resources/lib/webservice.py index a771554f..793b8d1d 100644 --- a/resources/lib/webservice.py +++ b/resources/lib/webservice.py @@ -404,11 +404,12 @@ class QueuePlay(backgroundthread.KillableThread): LOG.info('Start normal playback') # Release default.py utils.window('plex.playlist.play', value='true') - # Remove the playlist element we just added with the - # right path - xbmc.sleep(1000) - playqueue.kodi_remove_item(start_position) - del playqueue.items[start_position] + if not app.PLAYSTATE.initiated_by_plex: + # Remove the playlist element we just added with the + # right path + xbmc.sleep(1000) + playqueue.kodi_remove_item(start_position) + del playqueue.items[start_position] LOG.debug('Done wrapping up') break self.load_params(params)