Merge pull request #697 from croneter/fix-extras

Fix extras not playing
This commit is contained in:
croneter 2019-02-04 16:23:36 +01:00 committed by GitHub
commit 664470df6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -894,9 +894,14 @@ def extras(plex_id):
return
for item in API(xml[0]).extras():
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]),
url=api.path(),
url=path,
listitem=listitem)
xbmcplugin.endOfDirectory(int(argv[1]))