Fix missing Kodi tags for movie collections/sets

This commit is contained in:
croneter 2021-01-09 17:09:10 +01:00
parent 9e0ac64bb9
commit aac16f38b3
1 changed files with 2 additions and 1 deletions

View File

@ -195,9 +195,10 @@ class Movie(ItemBase):
return True
def _process_collections(self, api, tags, kodi_id, section_id, children):
for _, set_name in api.collections():
tags.append(set_name)
for plex_set_id, set_name in api.collections():
set_api = None
tags.append(set_name)
# Add any sets from Plex collection tags
kodi_set_id = self.kodidb.create_collection(set_name)
self.kodidb.assign_collection(kodi_set_id, kodi_id)