Fix UnboundLocalError for Direct Paths

This commit is contained in:
croneter 2018-01-30 07:51:14 +01:00
parent fc9ea2444e
commit 336d50cd3a

View file

@ -371,9 +371,9 @@ class KodiMonitor(Monitor):
return
LOG.info('Need to initialize Plex and PKC playqueue')
if plex_id:
PL.init_Plex_playlist(playqueue, plex_id=plex_id)
item = PL.init_Plex_playlist(playqueue, plex_id=plex_id)
else:
PL.init_Plex_playlist(playqueue,
item = PL.init_Plex_playlist(playqueue,
kodi_item={'id': kodi_id,
'type': kodi_type,
'file': path})