diff --git a/jellyfin_kodi/full_sync.py b/jellyfin_kodi/full_sync.py index 5f93d5ab..57c5b33d 100644 --- a/jellyfin_kodi/full_sync.py +++ b/jellyfin_kodi/full_sync.py @@ -215,7 +215,10 @@ class FullSync(object): if library_id.startswith('Boxsets:'): boxset_library = {} - libraries = self.get_libraries(library_id.split('Boxsets:')[1] if len(library_id) > len('Boxsets:') else None) + if library_id and library_id == 'Boxsets:Refresh': + libraries = self.get_libraries() + else: + libraries = self.get_libraries(library_id.split('Boxsets:')[1]) for entry in libraries: if entry[2] == 'boxsets': boxset_library = {'Id': entry[0], 'Name': entry[1]} @@ -501,7 +504,7 @@ class FullSync(object): obj = Movies(self.server, jellyfindb, videodb, self.direct_path, library) obj.boxsets_reset() - self.boxsets(None) + self.boxsets(library) @progress(translate(33144)) def remove_library(self, library_id, dialog):