#116 Fix issue with videos in custom URL albums

This commit is contained in:
Alan Grainger
2025-09-21 09:25:10 +02:00
parent e7dc11a66c
commit c5eb313085
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -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')