Fix playback startup for Plex Companion

This commit is contained in:
croneter 2019-05-26 17:56:16 +02:00
parent 48d288ac53
commit 6cba4a1d01
1 changed files with 6 additions and 5 deletions

View File

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