1
0
Fork 0

Merge pull request #72 from Felix-Franz/patch-1

#71 fix broken api after upgrade to 1.118
This commit is contained in:
Salvoxia 2024-10-15 18:48:31 +00:00 committed by GitHub
commit a5be0d3cf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,7 +296,7 @@ def fetchServerVersion() -> dict:
# This API call was only introduced with version 1.106.1, so it will fail
# for older versions.
# Initialize the version with the latest version without this API call
r = requests.get(root_url+'server-info/version', **requests_kwargs)
r = requests.get(root_url+'server/version', **requests_kwargs)
if r.status_code == 200:
version = r.json()
logging.info("Detected Immich server version %s.%s.%s", version['major'], version['minor'], version['patch'])