Fix KeyError
This commit is contained in:
parent
0cedfd7a7d
commit
1780b3948b
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ def create_kodi_playlist(plex_id=None):
|
|||
if xml is None:
|
||||
LOG.error('Could not get Plex playlist %s', plex_id)
|
||||
return
|
||||
api = API(xml)
|
||||
api = API(xml[0])
|
||||
playlist = PL.Playlist_Object()
|
||||
playlist.id = api.plex_id()
|
||||
playlist.type = v.KODI_PLAYLIST_TYPE_FROM_PLEX[api.playlist_type()]
|
||||
|
|
Loading…
Reference in a new issue