From 0a33fcf3a1c9cadea767b52f4441163fd722da58 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sat, 14 Jan 2017 09:59:43 +0100 Subject: [PATCH] Fix playQueue keyError --- resources/lib/playlist_func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index b0935724..992ad5a0 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -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.kind] + item.ID = xml[-1].attrib['%sItemID' % playlist.kind] playlist.items.append(item) log.debug('Initialized the playlist on the Plex side: %s' % playlist)