mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix indicator
In case settings is empty, assign default value of 10
This commit is contained in:
parent
673315e46c
commit
d01fb0453c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue