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:
parent
aac22c3369
commit
bba42bb1bb
1 changed files with 6 additions and 7 deletions
|
@ -185,14 +185,13 @@ 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)
|
||||||
|
if playqueue.id is None:
|
||||||
|
LOG.debug('Not yet initiating playback')
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
if playqueue.id is None:
|
PL.add_item_to_PMS_playlist(playqueue,
|
||||||
PL.init_Plex_playlist(playqueue,
|
i,
|
||||||
kodi_item=new_item)
|
kodi_item=new_item)
|
||||||
else:
|
|
||||||
PL.add_item_to_PMS_playlist(playqueue,
|
|
||||||
i,
|
|
||||||
kodi_item=new_item)
|
|
||||||
except PL.PlaylistError:
|
except PL.PlaylistError:
|
||||||
# Could not add the element
|
# Could not add the element
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue