Enable Plex Hub listings to be used for widgets

- Fixes #585
This commit is contained in:
croneter 2019-01-01 13:19:26 +01:00
parent 56331bead5
commit 70632f1749

View file

@ -664,6 +664,9 @@ def hub(content_type):
__build_folder(entry) __build_folder(entry)
elif content_type == 'image' and api.plex_type() == v.PLEX_TYPE_PHOTO: elif content_type == 'image' and api.plex_type() == v.PLEX_TYPE_PHOTO:
__build_folder(entry) __build_folder(entry)
else:
# Needed for widgets, where no content_type is provided
__build_folder(entry)
xbmcplugin.endOfDirectory( xbmcplugin.endOfDirectory(
handle=int(argv[1]), handle=int(argv[1]),
cacheToDisc=utils.settings('enableTextureCache') == 'true') cacheToDisc=utils.settings('enableTextureCache') == 'true')