From cbab9b39492a53bab273e2f0caad60a22cad446c Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 25 Nov 2025 15:03:38 -0700 Subject: [PATCH] Move Immich URL to secrets --- main.py | 2 +- secrets.py.example | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 = ''