diff --git a/main.py b/main.py index 3a15720..95b0779 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ timer = None def trigger_scan(): """Trigger a library scan in Immich.""" logging.info("Triggering Immich library scan.") - url = f"https://photos.dns.t0.vc/api/libraries/{secrets.LIBRARY_UUID}/scan" + url = f"{secrets.IMMICH_URL}/api/libraries/{secrets.LIBRARY_UUID}/scan" headers = { 'Accept': 'application/json', 'x-api-key': secrets.IMMICH_API_KEY, diff --git a/secrets.py.example b/secrets.py.example index 5d96f2b..498b7b6 100644 --- a/secrets.py.example +++ b/secrets.py.example @@ -1,3 +1,5 @@ +IMMICH_URL = 'https://photos.example.com' + IMMICH_API_KEY = '' LIBRARY_UUID = ''