mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix retention
This commit is contained in:
parent
8a295347f8
commit
62610f5e0d
1 changed files with 3 additions and 2 deletions
|
@ -118,10 +118,11 @@ class LibrarySync(threading.Thread):
|
|||
log.info("Last sync run: %s" % lastSyncTime)
|
||||
|
||||
# get server RetentionDateTime
|
||||
result = self.doUtils("{server}/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json")
|
||||
try:
|
||||
result = self.doUtils("{server}/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json")
|
||||
retention_time = result['RetentionDateTime']
|
||||
except (TypeError, KeyError):
|
||||
except Exception as error:
|
||||
log.error(error)
|
||||
retention_time = "2010-01-01T00:00:00Z"
|
||||
|
||||
retention_time = utils.convertDate(retention_time)
|
||||
|
|
Loading…
Reference in a new issue