fix(server): queue android motion assets for transcoding (#17781)

This commit is contained in:
Mert
2025-04-23 07:03:28 -04:00
committed by GitHub
parent 2a95eccf6a
commit 92ac1193e6
4 changed files with 29 additions and 14 deletions

View File

@@ -598,6 +598,10 @@ describe(MetadataService.name, () => {
livePhotoVideoId: fileStub.livePhotoMotion.uuid,
});
expect(mocks.asset.update).toHaveBeenCalledTimes(3);
expect(mocks.job.queue).toHaveBeenCalledExactlyOnceWith({
name: JobName.VIDEO_CONVERSION,
data: { id: assetStub.livePhotoMotionAsset.id },
});
});
it('should extract the EmbeddedVideo tag from Samsung JPEG motion photos', async () => {
@@ -652,6 +656,10 @@ describe(MetadataService.name, () => {
livePhotoVideoId: fileStub.livePhotoMotion.uuid,
});
expect(mocks.asset.update).toHaveBeenCalledTimes(3);
expect(mocks.job.queue).toHaveBeenCalledExactlyOnceWith({
name: JobName.VIDEO_CONVERSION,
data: { id: assetStub.livePhotoMotionAsset.id },
});
});
it('should extract the motion photo video from the XMP directory entry ', async () => {
@@ -706,6 +714,10 @@ describe(MetadataService.name, () => {
livePhotoVideoId: fileStub.livePhotoMotion.uuid,
});
expect(mocks.asset.update).toHaveBeenCalledTimes(3);
expect(mocks.job.queue).toHaveBeenCalledExactlyOnceWith({
name: JobName.VIDEO_CONVERSION,
data: { id: assetStub.livePhotoMotionAsset.id },
});
});
it('should delete old motion photo video assets if they do not match what is extracted', async () => {