empty default if there are no boxsets in the server

This commit is contained in:
Matt 2020-08-03 15:07:26 -04:00
parent ce21b37501
commit d10ca845f4

View file

@ -213,6 +213,7 @@ class FullSync(object):
} }
try: try:
if library_id.startswith('Boxsets:'): if library_id.startswith('Boxsets:'):
boxset_library = {}
libraries = self.get_libraries(library_id.split('Boxsets:')[1] if len(library_id) > len('Boxsets:') else None) libraries = self.get_libraries(library_id.split('Boxsets:')[1] if len(library_id) > len('Boxsets:') else None)
for entry in libraries: for entry in libraries: