Fix PlaylistError
This commit is contained in:
parent
76bd6e934a
commit
48dc22ee35
1 changed files with 12 additions and 7 deletions
|
@ -375,13 +375,18 @@ class KodiMonitor(Monitor):
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
return
|
return
|
||||||
LOG.info('Need to initialize Plex and PKC playqueue')
|
LOG.info('Need to initialize Plex and PKC playqueue')
|
||||||
if plex_id:
|
try:
|
||||||
item = PL.init_Plex_playlist(playqueue, plex_id=plex_id)
|
if plex_id:
|
||||||
else:
|
item = PL.init_Plex_playlist(playqueue, plex_id=plex_id)
|
||||||
item = PL.init_Plex_playlist(playqueue,
|
else:
|
||||||
kodi_item={'id': kodi_id,
|
item = PL.init_Plex_playlist(playqueue,
|
||||||
'type': kodi_type,
|
kodi_item={'id': kodi_id,
|
||||||
'file': path})
|
'type': kodi_type,
|
||||||
|
'file': path})
|
||||||
|
except PL.PlaylistError:
|
||||||
|
LOG.info('Could not initialize our playlist')
|
||||||
|
# Avoid errors
|
||||||
|
item = PL.Playlist_Item()
|
||||||
# Set the Plex container key (e.g. using the Plex playqueue)
|
# Set the Plex container key (e.g. using the Plex playqueue)
|
||||||
container_key = None
|
container_key = None
|
||||||
if info['playlistid'] != -1:
|
if info['playlistid'] != -1:
|
||||||
|
|
Loading…
Reference in a new issue