Provide more metadata for unsynced directory-like items like a show

This commit is contained in:
croneter 2019-07-13 14:47:43 +02:00
parent 84d4e5aa99
commit 3436035530

View file

@ -79,7 +79,6 @@ def generate_item(api):
def _generate_folder(api):
'''Generates "folder"/"directory" items that user can further navigate'''
art = api.artwork()
typus = ''
if api.plex_type == v.PLEX_TYPE_GENRE:
# Unfortunately, 'genre' is not yet supported by Kodi
@ -95,6 +94,17 @@ def _generate_folder(api):
typus = v.KODI_TYPE_ALBUM
elif api.fast_key and '?collection=' in api.fast_key:
typus = v.KODI_TYPE_SET
if typus and typus != v.KODI_TYPE_SET:
content = _generate_content(api)
content['type'] = typus
content['file'] = api.directory_path(section_id=SECTION_ID,
plex_type=PLEX_TYPE,
old_key=KEY)
content['isFolder'] = True
content['IsPlayable'] = 'false'
return content
else:
art = api.artwork()
return {
'title': api.title(),
'label': api.title(),