mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Added creation date for video from ffmpeg.prob (#303)
This commit is contained in:
parent
b6814fad57
commit
97d9b80baa
3 changed files with 34 additions and 18 deletions
|
|
@ -15,7 +15,7 @@ import {
|
|||
exifExtractionProcessorName,
|
||||
generateJPEGThumbnailProcessorName,
|
||||
mp4ConversionProcessorName,
|
||||
videoLengthExtractionProcessorName,
|
||||
videoMetadataExtractionProcessorName,
|
||||
} from '@app/job';
|
||||
|
||||
@Processor(assetUploadedQueueName)
|
||||
|
|
@ -62,9 +62,9 @@ export class AssetUploadedProcessor {
|
|||
);
|
||||
}
|
||||
|
||||
// Extract video duration if uploaded from the web
|
||||
// Extract video duration if uploaded from the web & CLI
|
||||
if (asset.type == AssetType.VIDEO && asset.duration == '0:00:00.000000') {
|
||||
await this.metadataExtractionQueue.add(videoLengthExtractionProcessorName, { asset }, { jobId: randomUUID() });
|
||||
await this.metadataExtractionQueue.add(videoMetadataExtractionProcessorName, { asset }, { jobId: randomUUID() });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue