-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osxphotos sync may get confused with two pics in the Library with different UUIDs but same fingerprint (creating by duplicating pics in Photos) #1641
Comments
This is by design. UUIDs only apply to a specific library on a specific Mac. (And if you use Photos library repair tool, UUIDs may change). Because of this, UUIDs cannot be used to compare assets between libraries. In order to maximize the preservation of metadata during sync, if OSXPhotos finds duplicates during export, the metadata is merged: osxphotos/osxphotos/cli/sync.py Lines 209 to 219 in 9a07c29
During import, any photo matching a signature of a photo in the metadata db gets the metadata applied: osxphotos/osxphotos/cli/sync.py Lines 303 to 313 in 9a07c29
Given two identical photos with the same name, there is no possible way OSXPhotos could know what the user's intent was when doing a sync so the code maximizes preservation of data.
|
Before submitting a bug report, please ensure you are running the most recent version of osxphotos and that the bug is reproducible on the latest version
Yes. In this case using a development branch of 0.68.4. But the official 0.68.4 should have the same behaviour.
Describe the bug
Sync impacts any pics with same fingerprint, even though they may have different UUIDs. The pics may have been generated via Duplicate and then Edited in Mac Photos.
To Reproduce
Steps to reproduce the behavior:
0. Use tests/Test-10.15.7.photoslibrary library.
osxphotos sync --export test.db
osxphotos sync --import test.db --set title,description,favorite,albums,location --merge keywords --verbose --verbose --timestamp --report import.sync.json
Expected behavior
Don't know what else osxphotos could do, or if it even should act any differently as across Libraries and beyond the Fingerprint there isn't additional information osxphotos could work with to math/differentiate pics in this situation.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Building into sync the location field.
The text was updated successfully, but these errors were encountered: