#116 Fix issue with videos in custom URL albums
This commit is contained in:
Generated
+2
-2
@@ -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",
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
+2
-1
@@ -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')
|
||||
|
||||
@@ -22,6 +22,7 @@ export enum AlbumType {
|
||||
export interface Asset {
|
||||
id: string;
|
||||
key: string;
|
||||
keyType: KeyType;
|
||||
originalFileName?: string;
|
||||
originalMimeType: string;
|
||||
password?: string;
|
||||
|
||||
Reference in New Issue
Block a user