Fix PlaylistError
This commit is contained in:
parent
6075642e9e
commit
76bd6e934a
1 changed files with 9 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue