mirror of
https://github.com/immich-app/immich.git
synced 2024-12-01 09:51:16 +02:00
a972dd4060
* Fix extraction of samsung motionphoto videos * Refactor binary tag extraction to the repository to consolidate exiftool usage * format * fix linting and swap argument orders * Fix tag name and conditional order * Add unit test * Update server test assets submodule * Remove old motion photo video assets when a new one is extracted * delete first, then write * Include motion photo asset uuid's in the filename If the filenames are not uniquified, then we can't delete old/corrupt ones * Fix formatting and fix/add tests * chore: only use new uuid --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
17 lines
461 B
TypeScript
17 lines
461 B
TypeScript
export const fileStub = {
|
|
livePhotoStill: Object.freeze({
|
|
uuid: 'random-uuid',
|
|
originalPath: 'fake_path/asset_1.jpeg',
|
|
checksum: Buffer.from('file hash', 'utf8'),
|
|
originalName: 'asset_1.jpeg',
|
|
size: 42,
|
|
}),
|
|
livePhotoMotion: Object.freeze({
|
|
uuid: 'live-photo-motion-asset',
|
|
originalPath: 'fake_path/asset_1.mp4',
|
|
checksum: Buffer.from('live photo file hash', 'utf8'),
|
|
originalName: 'asset_1.mp4',
|
|
size: 69,
|
|
}),
|
|
};
|