utils
This commit is contained in:
parent
bb8374e927
commit
ef903f5c8a
1 changed files with 2 additions and 4 deletions
|
@ -103,8 +103,6 @@ class LibrarySync(threading.Thread):
|
||||||
|
|
||||||
def fastSync(self):
|
def fastSync(self):
|
||||||
|
|
||||||
doUtils = self.doUtils
|
|
||||||
|
|
||||||
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"
|
||||||
|
@ -114,7 +112,7 @@ class LibrarySync(threading.Thread):
|
||||||
|
|
||||||
# get server RetentionDateTime
|
# get server RetentionDateTime
|
||||||
url = "{server}/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json"
|
url = "{server}/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json"
|
||||||
result = doUtils(url)
|
result = self.doUtils(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'):
|
||||||
retention_time = result['RetentionDateTime']
|
retention_time = result['RetentionDateTime']
|
||||||
|
@ -137,7 +135,7 @@ class LibrarySync(threading.Thread):
|
||||||
|
|
||||||
url = "{server}/emby/Emby.Kodi.SyncQueue/{UserId}/GetItems?format=json"
|
url = "{server}/emby/Emby.Kodi.SyncQueue/{UserId}/GetItems?format=json"
|
||||||
params = {'LastUpdateDT': lastSync}
|
params = {'LastUpdateDT': lastSync}
|
||||||
result = doUtils(url, parameters=params)
|
result = self.doUtils(url, parameters=params)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
processlist = {
|
processlist = {
|
||||||
|
|
Loading…
Reference in a new issue