diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index e3d4c121..62aea4d0 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['lastAdded%sitemId' % playlist.type] + item.ID = xml.attrib['lastAdded%sitemId' % playlist.type] playlist.items.append(item) log.debug('Initialized the playlist on the Plex side: %s' % playlist)