mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Merge pull request #456 from mcarlton00/refresh-boxsets-fix
Fix refresh boxsets function
This commit is contained in:
commit
294a840155
1 changed files with 5 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue