Fix extras not playing

This commit is contained in:
croneter 2019-02-04 12:51:16 +01:00
parent 29ec8cabf7
commit 20225f12b4

View file

@ -894,9 +894,14 @@ def extras(plex_id):
return return
for item in API(xml[0]).extras(): for item in API(xml[0]).extras():
api = API(item) api = API(item)
listitem = api.create_listitem() path = api.path()
# For some reason, the combination of metadata used by
# api.create_listitem() breaks the listitem
listitem = ListItem(api.title())
listitem.setPath(path)
listitem.setArt(api.artwork())
xbmcplugin.addDirectoryItem(handle=int(argv[1]), xbmcplugin.addDirectoryItem(handle=int(argv[1]),
url=api.path(), url=path,
listitem=listitem) listitem=listitem)
xbmcplugin.endOfDirectory(int(argv[1])) xbmcplugin.endOfDirectory(int(argv[1]))