feat: add video streaming proxy and webhook cache invalidation

- Add /api/video/[id] route with Range header support for seeking
- Add /api/webhook route for Immich event-driven cache invalidation
- Add streamVideo() to ImmichClient with 206 Partial Content support
- Support album description overrides in gallery.yaml
- Add videoUrl() helper to lib/urls.ts
- Export cache.delete() and cache.clear() methods
This commit is contained in:
ralksta
2026-05-29 17:04:57 +02:00
parent ce7c1742be
commit e9063d3a71
7 changed files with 267 additions and 5 deletions

View File

@@ -24,6 +24,13 @@ export function exifUrl(assetId: string): string {
return `/api/exif/${encodeAssetId(assetId)}`;
}
/**
* Generate a public video proxy URL for an asset.
*/
export function videoUrl(assetId: string): string {
return `/api/video/${encodeAssetId(assetId)}`;
}
/**
* Placeholder data derived from an asset's ThumbHash.
*/