mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Remove duplicate logging
This commit is contained in:
parent
15e0f92092
commit
afcc92686e
1 changed files with 2 additions and 4 deletions
|
@ -103,20 +103,18 @@ class LibrarySync(threading.Thread):
|
|||
lastSync = utils.settings('LastIncrementalSync')
|
||||
if not lastSync:
|
||||
lastSync = "2010-01-01T00:00:00Z"
|
||||
self.logMsg("Last sync run: %s" % lastSync, 1)
|
||||
|
||||
lastSyncTime = utils.convertdate(lastSync)
|
||||
self.logMsg("LastIncrementalSync : %s" % lastSyncTime, 1)
|
||||
self.logMsg("Last sync run: %s" % lastSyncTime, 1)
|
||||
|
||||
# get server RetentionDateTime
|
||||
url = "{server}/Emby.Kodi.SyncQueue/GetServerDateTime?format=json"
|
||||
result = self.doUtils.downloadUrl(url)
|
||||
retention_time = "2010-01-01T00:00:00Z"
|
||||
if result and result.get('RetentionDateTime'):
|
||||
self.logMsg("RetentionDateTime Found", 1)
|
||||
retention_time = result['RetentionDateTime']
|
||||
retention_time = utils.convertdate(retention_time)
|
||||
self.logMsg("RetentionDateTime : %s" % retention_time, 1)
|
||||
self.logMsg("RetentionDateTime: %s" % retention_time, 1)
|
||||
|
||||
# if last sync before retention time do a full sync
|
||||
if retention_time > lastSyncTime:
|
||||
|
|
Loading…
Reference in a new issue