Fix playQueue keyError

This commit is contained in:
tomkat83 2017-01-14 09:59:43 +01:00
parent c0bf825f7f
commit 0a33fcf3a1

View file

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