Fix playQueue keyError
This commit is contained in:
parent
c0bf825f7f
commit
0a33fcf3a1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue