Remove more references to Immich

This commit is contained in:
2026-05-18 15:28:20 +00:00
parent 6c8e42f1ef
commit 89b7b1bd23

View File

@@ -1,9 +1,9 @@
""" """
Immich Drop Uploader Backend (FastAPI, simplified) File Drop Uploader Backend (FastAPI, simplified)
---------------------------------------------------- ----------------------------------------------------
- Serves static frontend (no settings UI) - Serves static frontend (no settings UI)
- Uploads to Immich using values from .env ONLY - Uploads to file system
- Duplicate checks (local SHA-1 DB + optional Immich bulk-check) - Duplicate checks (local SHA-1 DB)
- WebSocket progress per session - WebSocket progress per session
- Ephemeral "Connected" banner via /api/ping - Ephemeral "Connected" banner via /api/ping
""" """
@@ -40,7 +40,7 @@ except Exception:
from app.config import Settings, load_settings from app.config import Settings, load_settings
# ---- App & static ---- # ---- App & static ----
app = FastAPI(title="Immich Drop Uploader (Python)") app = FastAPI(title="File Drop Uploader (Python)")
# Global settings (read-only at runtime) # Global settings (read-only at runtime)
SETTINGS: Settings = load_settings() SETTINGS: Settings = load_settings()
@@ -603,7 +603,7 @@ async def api_upload(
fingerprint: Optional[str] = Form(None), fingerprint: Optional[str] = Form(None),
public_folder_name: Optional[str] = Form(None), public_folder_name: Optional[str] = Form(None),
): ):
"""Receive a file, check duplicates, forward to Immich; stream progress via WS.""" """Receive a file, check duplicates; stream progress via WS."""
raw = await file.read() raw = await file.read()
size = len(raw) size = len(raw)
checksum = sha1_hex(raw) checksum = sha1_hex(raw)
@@ -880,7 +880,7 @@ async def api_upload_chunk(
@app.post("/api/upload/chunk/complete") @app.post("/api/upload/chunk/complete")
async def api_upload_chunk_complete(request: Request) -> JSONResponse: async def api_upload_chunk_complete(request: Request) -> JSONResponse:
"""Assemble all parts and run the regular upload flow to Immich.""" """Assemble all parts and run the regular upload flow."""
try: try:
data = await request.json() data = await request.json()
except Exception: except Exception: