Fix #230 slug album not downloading correctly

This commit is contained in:
Alan Grainger
2026-05-28 09:35:03 +08:00
parent 062c7bef19
commit 95957b7d37
3 changed files with 28 additions and 20 deletions
+8 -2
View File
@@ -344,8 +344,14 @@ class Immich {
* user gets when they hit "download".
*/
requiresOriginal (asset: Asset): boolean {
return asset.type === AssetType.video ||
asset.originalMimeType === 'image/gif'
if (asset.type === AssetType.video) {
return true
} else if (asset.originalMimeType?.startsWith('video/')) {
return true
} else if (asset.originalMimeType === 'image/gif') {
return true
}
return false
}
/**