Fix playlist id and naming on playlist creation

This commit is contained in:
Croneter 2018-05-01 16:48:31 +02:00
parent 7ddfc0143d
commit 20fef65b3d

View file

@ -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[0])
api = API(xml)
playlist = PL.Playlist_Object()
playlist.id = api.plex_id()
playlist.type = v.KODI_PLAYLIST_TYPE_FROM_PLEX[api.playlist_type()]