From c5eb313085655de4272a579e3fe0691ba1cd207a Mon Sep 17 00:00:00 2001 From: Alan Grainger <16197738+alangrainger@users.noreply.github.com> Date: Sun, 21 Sep 2025 09:25:10 +0200 Subject: [PATCH] #116 Fix issue with videos in custom URL albums --- app/package-lock.json | 4 ++-- app/package.json | 2 +- app/src/immich.ts | 3 ++- app/src/types.ts | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/package-lock.json b/app/package-lock.json index 2186a7a..fe3ff0f 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "immich-public-proxy", - "version": "1.13.1", + "version": "1.13.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "immich-public-proxy", - "version": "1.13.1", + "version": "1.13.2", "license": "AGPL-3.0", "dependencies": { "archiver": "^7.0.1", diff --git a/app/package.json b/app/package.json index 87262b1..b1b3e2f 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "immich-public-proxy", - "version": "1.13.1", + "version": "1.13.2", "scripts": { "dev": "ts-node src/index.ts", "build": "npx tsc", diff --git a/app/src/immich.ts b/app/src/immich.ts index 1d3466a..907f5ff 100644 --- a/app/src/immich.ts +++ b/app/src/immich.ts @@ -186,6 +186,7 @@ class Immich { // Populate the shared assets with the public key/password link.assets.forEach(asset => { asset.key = key + asset.keyType = keyType asset.password = password }) // Sort album if there is a sort order specified @@ -234,7 +235,7 @@ class Immich { */ async getVideoContentType (asset: Asset) { const data = await this.request(this.buildUrl('/assets/' + encodeURIComponent(asset.id) + '/video/playback', { - key: asset.key, + [asset.keyType]: asset.key, password: asset.password })) return data.headers.get('Content-Type') diff --git a/app/src/types.ts b/app/src/types.ts index 44425e9..fad3029 100644 --- a/app/src/types.ts +++ b/app/src/types.ts @@ -22,6 +22,7 @@ export enum AlbumType { export interface Asset { id: string; key: string; + keyType: KeyType; originalFileName?: string; originalMimeType: string; password?: string;