Skip to content

Commit 429ef10

Browse files
committed
fix linting and swap argument orders
1 parent 8c14db9 commit 429ef10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: server/src/domain/metadata/metadata.service.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AssetEntity, AssetType, ExifEntity } from '@app/infra/entities';
22
import { ImmichLogger } from '@app/infra/logger';
33
import { Inject, Injectable } from '@nestjs/common';
4-
import { ExifDateTime, Tags, exiftool } from 'exiftool-vendored';
4+
import { ExifDateTime, Tags } from 'exiftool-vendored';
55
import { firstDateTime } from 'exiftool-vendored/dist/FirstDateTime';
66
import { constants } from 'fs/promises';
77
import _ from 'lodash';
@@ -389,11 +389,11 @@ export class MetadataService {
389389
// Samsung MotionPhoto video extraction
390390
// JPEG-encoded
391391
if (tags.EmbeddedVideoType === 'MotionPhoto_Data' && tags.EmbeddedVideo) {
392-
video = await this.repository.extractBinaryTag('EmbeddedVideo', asset.originalPath);
392+
video = await this.repository.extractBinaryTag(asset.originalPath, 'EmbeddedVideo');
393393
}
394394
// HEIC-encoded
395395
else if (tags.MotionPhotoVideo) {
396-
video = await this.repository.extractBinaryTag('MotionPhotoVideo', asset.originalPath);
396+
video = await this.repository.extractBinaryTag(asset.originalPath, 'MotionPhotoVideo');
397397
}
398398
// Default video extraction
399399
else {

0 commit comments

Comments
 (0)