Fix indicator

In case settings is empty, assign default value of 10
This commit is contained in:
angelblue05 2016-10-20 02:18:55 -05:00
parent 673315e46c
commit d01fb0453c

View file

@ -751,7 +751,7 @@ class LibrarySync(threading.Thread):
self.forceLibraryUpdate = True self.forceLibraryUpdate = True
update_embydb = True update_embydb = True
incSyncIndicator = int(settings('incSyncIndicator')) incSyncIndicator = int(settings('incSyncIndicator') or 10)
totalUpdates = len(self.addedItems) + len(self.updateItems) + len(self.userdataItems) + len(self.removeItems) totalUpdates = len(self.addedItems) + len(self.updateItems) + len(self.userdataItems) + len(self.removeItems)
if incSyncIndicator != -1 and totalUpdates > incSyncIndicator: if incSyncIndicator != -1 and totalUpdates > incSyncIndicator: