#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",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.13.1",
|
"version": "1.13.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "immich-public-proxy",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.13.1",
|
"version": "1.13.2",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"archiver": "^7.0.1",
|
"archiver": "^7.0.1",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "immich-public-proxy",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.13.1",
|
"version": "1.13.2",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "ts-node src/index.ts",
|
"dev": "ts-node src/index.ts",
|
||||||
"build": "npx tsc",
|
"build": "npx tsc",
|
||||||
|
|||||||
+2
-1
@@ -186,6 +186,7 @@ class Immich {
|
|||||||
// Populate the shared assets with the public key/password
|
// Populate the shared assets with the public key/password
|
||||||
link.assets.forEach(asset => {
|
link.assets.forEach(asset => {
|
||||||
asset.key = key
|
asset.key = key
|
||||||
|
asset.keyType = keyType
|
||||||
asset.password = password
|
asset.password = password
|
||||||
})
|
})
|
||||||
// Sort album if there is a sort order specified
|
// Sort album if there is a sort order specified
|
||||||
@@ -234,7 +235,7 @@ class Immich {
|
|||||||
*/
|
*/
|
||||||
async getVideoContentType (asset: Asset) {
|
async getVideoContentType (asset: Asset) {
|
||||||
const data = await this.request(this.buildUrl('/assets/' + encodeURIComponent(asset.id) + '/video/playback', {
|
const data = await this.request(this.buildUrl('/assets/' + encodeURIComponent(asset.id) + '/video/playback', {
|
||||||
key: asset.key,
|
[asset.keyType]: asset.key,
|
||||||
password: asset.password
|
password: asset.password
|
||||||
}))
|
}))
|
||||||
return data.headers.get('Content-Type')
|
return data.headers.get('Content-Type')
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export enum AlbumType {
|
|||||||
export interface Asset {
|
export interface Asset {
|
||||||
id: string;
|
id: string;
|
||||||
key: string;
|
key: string;
|
||||||
|
keyType: KeyType;
|
||||||
originalFileName?: string;
|
originalFileName?: string;
|
||||||
originalMimeType: string;
|
originalMimeType: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user