mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +02:00
transcode live photos on upload (#3354)
This commit is contained in:
parent
1835fbae49
commit
6668964d92
@ -172,6 +172,8 @@ export class JobService {
|
||||
if (asset) {
|
||||
if (asset.type === AssetType.VIDEO) {
|
||||
await this.jobRepository.queue({ name: JobName.VIDEO_CONVERSION, data: item.data });
|
||||
} else if (asset.livePhotoVideoId) {
|
||||
await this.jobRepository.queue({ name: JobName.VIDEO_CONVERSION, data: { id: asset.livePhotoVideoId } });
|
||||
}
|
||||
this.communicationRepository.send(CommunicationEvent.UPLOAD_SUCCESS, asset.ownerId, mapAsset(asset));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user