Fail setResolvedUrl on 1st run

- Using add-on paths in the Kodi library, we need to make sure that the subsequent call of xbmc.setresolvedUrl fails or is forwarded once again
This commit is contained in:
croneter 2018-02-20 19:43:12 +01:00
parent aac22c3369
commit bba42bb1bb

View file

@ -185,11 +185,10 @@ class PlayqueueMonitor(Thread):
else: else:
LOG.debug('Detected new Kodi element at position %s: %s ', LOG.debug('Detected new Kodi element at position %s: %s ',
i, new_item) i, new_item)
try:
if playqueue.id is None: if playqueue.id is None:
PL.init_Plex_playlist(playqueue, LOG.debug('Not yet initiating playback')
kodi_item=new_item) return
else: try:
PL.add_item_to_PMS_playlist(playqueue, PL.add_item_to_PMS_playlist(playqueue,
i, i,
kodi_item=new_item) kodi_item=new_item)