garzj / google-photos-migrate

A tool to fix EXIF data and recover filenames from a Google Photos takeout, preserving albums within the directory structure.
https://npmjs.com/package/google-photos-migrate
MIT License
104 stars 11 forks source link

Possible alias for Apple live photos #3

Closed p0n1 closed 12 months ago

p0n1 commented 12 months ago

I got many errors for my photos in 2017.

Done! Processed 4888 files.
Files migrated: 3246
Files failed: 1642

I checked. It's due to live photo stuff. The script can not find correct metadata file for live photo videos. Maybe JPG is used for live photo in 2017 and then HEIC.

IMG_0005.JPG
IMG_0005.JPG.json
IMG_0005.MP4

I fixed this by adding a more .jpg alias here for mp4. https://github.com/garzj/google-photos-migrate/blob/8b2b335913d4b2fb23e94ecf1c62371ddcb5a2bd/src/config/extensions.ts#L15

Because I got many rename logs.

Renamed wrong extension .jpg to .mov: ~/google-photos-migrate/output/IMG_0005.mov
Renamed wrong extension .jpg to .mov: ~/google-photos-migrate/output/IMG_0007.mov

But anyway it seems worked.

Done! Processed 4888 files.
Files migrated: 4886
Files failed: 2