Fix display of item numbers during playstate sync

This commit is contained in:
croneter 2019-12-13 13:19:15 +01:00
parent b55b22efb0
commit 6510d5e399

View file

@ -135,7 +135,7 @@ class FullSync(common.LibrarySyncMixin, backgroundthread.KillableThread):
context.plexdb.update_last_sync(int(xml.attrib['ratingKey']), context.plexdb.update_last_sync(int(xml.attrib['ratingKey']),
section.plex_type, section.plex_type,
self.current_time) self.current_time)
self.update_progressbar(section, '', section.count) self.update_progressbar(section, '', section.count - 1)
if section.count % PLAYSTATE_BATCH_SIZE == 0: if section.count % PLAYSTATE_BATCH_SIZE == 0:
context.commit() context.commit()
except RuntimeError: except RuntimeError: