Remove duplicate logging
This commit is contained in:
parent
15e0f92092
commit
afcc92686e
1 changed files with 2 additions and 4 deletions
|
@ -103,17 +103,15 @@ class LibrarySync(threading.Thread):
|
||||||
lastSync = utils.settings('LastIncrementalSync')
|
lastSync = utils.settings('LastIncrementalSync')
|
||||||
if not lastSync:
|
if not lastSync:
|
||||||
lastSync = "2010-01-01T00:00:00Z"
|
lastSync = "2010-01-01T00:00:00Z"
|
||||||
self.logMsg("Last sync run: %s" % lastSync, 1)
|
|
||||||
|
|
||||||
lastSyncTime = utils.convertdate(lastSync)
|
lastSyncTime = utils.convertdate(lastSync)
|
||||||
self.logMsg("LastIncrementalSync : %s" % lastSyncTime, 1)
|
self.logMsg("Last sync run: %s" % lastSyncTime, 1)
|
||||||
|
|
||||||
# get server RetentionDateTime
|
# get server RetentionDateTime
|
||||||
url = "{server}/Emby.Kodi.SyncQueue/GetServerDateTime?format=json"
|
url = "{server}/Emby.Kodi.SyncQueue/GetServerDateTime?format=json"
|
||||||
result = self.doUtils.downloadUrl(url)
|
result = self.doUtils.downloadUrl(url)
|
||||||
retention_time = "2010-01-01T00:00:00Z"
|
retention_time = "2010-01-01T00:00:00Z"
|
||||||
if result and result.get('RetentionDateTime'):
|
if result and result.get('RetentionDateTime'):
|
||||||
self.logMsg("RetentionDateTime Found", 1)
|
|
||||||
retention_time = result['RetentionDateTime']
|
retention_time = result['RetentionDateTime']
|
||||||
retention_time = utils.convertdate(retention_time)
|
retention_time = utils.convertdate(retention_time)
|
||||||
self.logMsg("RetentionDateTime: %s" % retention_time, 1)
|
self.logMsg("RetentionDateTime: %s" % retention_time, 1)
|
||||||
|
|
Loading…
Reference in a new issue