diff --git a/resources/lib/playlists.py b/resources/lib/playlists.py index 672a14e8..1ff16a1c 100644 --- a/resources/lib/playlists.py +++ b/resources/lib/playlists.py @@ -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()]