Merge pull request #1269 from croneter/fix-sets

Fix missing Kodi tags for movie collections/sets
This commit is contained in:
croneter 2021-01-09 17:17:48 +01:00 committed by GitHub
commit 250859d3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)