1
0
Fork 0

fix broken api after upgrade to 1.118

This commit is contained in:
Felix Franz 2024-10-15 19:49:39 +02:00 committed by GitHub
parent e01fc41961
commit 0783c1ee4a
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'])