def upload_photos():
# Login to Immich
cmd = [
"immich", "login", IMMICH_API_URL, IMMICH_API_KEY
]
output = subprocess.run(cmd, capture_output=True, text=True, check=True)
print(output.stdout)
# Upload photos
cmd = [
"immich", "upload", PHOTO_DIR, "-r", "--delete"
]
output = subprocess.run(cmd, capture_output=True, text=True, check=True)
print(output.stdout)
def upload_photos():
# Login to Immich
cmd = [
"immich", "login", IMMICH_API_URL, IMMICH_API_KEY
]
output = subprocess.run(cmd, capture_output=True, text=True, check=True)
print(output.stdout)
# Upload photos
cmd = [
"immich", "upload", PHOTO_DIR, "-r", "--delete"
]
output = subprocess.run(cmd, capture_output=True, text=True, check=True)
print(output.stdout)