1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2024-12-28 03:41:58 +00:00
This commit is contained in:
Alan Grainger 2024-10-29 20:44:46 +01:00
parent 64d30b1399
commit 12c254ae6d
2 changed files with 5 additions and 5 deletions

6
dist/immich.js vendored

File diff suppressed because one or more lines are too long

View file

@ -51,9 +51,9 @@ class Immich {
switch (asset.type) {
case AssetType.image:
size = size === ImageSize.thumbnail ? ImageSize.thumbnail : ImageSize.original
return this.request('/assets/' + asset.id + '/' + size)
return this.request('/assets/' + encodeURIComponent(asset.id) + '/' + size)
case AssetType.video:
return this.request('/assets/' + asset.id + '/video/playback')
return this.request('/assets/' + encodeURIComponent(asset.id) + '/video/playback')
}
}