Update playstates and userratings only once
This commit is contained in:
parent
5799612879
commit
874e9a8fc5
1 changed files with 6 additions and 0 deletions
|
@ -533,10 +533,12 @@ class LibrarySync(Thread):
|
||||||
self.compare = not repair
|
self.compare = not repair
|
||||||
|
|
||||||
self.new_items_only = True
|
self.new_items_only = True
|
||||||
|
# This will also update playstates and userratings!
|
||||||
log.info('Running fullsync for NEW PMS items with repair=%s' % repair)
|
log.info('Running fullsync for NEW PMS items with repair=%s' % repair)
|
||||||
if self._fullSync() is False:
|
if self._fullSync() is False:
|
||||||
return False
|
return False
|
||||||
self.new_items_only = False
|
self.new_items_only = False
|
||||||
|
# This will NOT update playstates and userratings!
|
||||||
log.info('Running fullsync for CHANGED PMS items with repair=%s'
|
log.info('Running fullsync for CHANGED PMS items with repair=%s'
|
||||||
% repair)
|
% repair)
|
||||||
if self._fullSync() is False:
|
if self._fullSync() is False:
|
||||||
|
@ -1106,6 +1108,10 @@ class LibrarySync(Thread):
|
||||||
also updates resume times.
|
also updates resume times.
|
||||||
This is done by downloading one XML for ALL elements with viewId
|
This is done by downloading one XML for ALL elements with viewId
|
||||||
"""
|
"""
|
||||||
|
if self.new_items_only is False:
|
||||||
|
# Only do this once for fullsync: the first run where new items are
|
||||||
|
# added to Kodi
|
||||||
|
return
|
||||||
xml = GetAllPlexLeaves(viewId,
|
xml = GetAllPlexLeaves(viewId,
|
||||||
lastViewedAt=lastViewedAt,
|
lastViewedAt=lastViewedAt,
|
||||||
updatedAt=updatedAt,
|
updatedAt=updatedAt,
|
||||||
|
|
Loading…
Reference in a new issue