From aab6a733fef9340d56f930e67b8d21f5128d44e1 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 12 Jan 2017 20:14:35 +0100 Subject: [PATCH] Fix KeyError for playlists --- 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 62aea4d0..b0935724 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.type] + item.ID = xml.attrib['lastAdded%sitemId' % playlist.kind] playlist.items.append(item) log.debug('Initialized the playlist on the Plex side: %s' % playlist)