Fix KeyError for playlists

This commit is contained in:
tomkat83 2017-01-12 20:14:35 +01:00
parent 1fc7277294
commit aab6a733fe

View file

@ -242,7 +242,7 @@ def init_Plex_playlist(playlist, plex_id=None, kodi_item=None):
action_type="POST",
parameters=params)
get_playlist_details_from_xml(playlist, xml)
item.ID = xml.attrib['lastAdded%sitemId' % playlist.type]
item.ID = xml.attrib['lastAdded%sitemId' % playlist.kind]
playlist.items.append(item)
log.debug('Initialized the playlist on the Plex side: %s' % playlist)