Fix PlaylistError

This commit is contained in:
croneter 2018-02-03 14:54:54 +01:00
parent 6075642e9e
commit 76bd6e934a

View file

@ -238,12 +238,15 @@ class KodiMonitor(Monitor):
LOG.debug('Playqueue not initiated - ignoring') LOG.debug('Playqueue not initiated - ignoring')
return return
# Playlist has been updated; need to tell Plex about it # Playlist has been updated; need to tell Plex about it
if playqueue.id is None: try:
PL.init_Plex_playlist(playqueue, kodi_item=data['item']) if playqueue.id is None:
else: PL.init_Plex_playlist(playqueue, kodi_item=data['item'])
PL.add_item_to_PMS_playlist(playqueue, else:
data['position'], PL.add_item_to_PMS_playlist(playqueue,
kodi_item=data['item']) data['position'],
kodi_item=data['item'])
except PL.PlaylistError:
pass
# Make sure that we won't re-add this item # Make sure that we won't re-add this item
# playqueue.old_kodi_pl = kodi_playqueue # playqueue.old_kodi_pl = kodi_playqueue