RhetTbull / osxphotos

Python app to work with pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.
MIT License
1.84k stars 94 forks source link

Add `--in-exportdb`, `--not-in-exportdb`, and `--missing-from-export` query options #1552

Open RhetTbull opened 1 month ago

RhetTbull commented 1 month ago

These would allow for comparing a Photos library against an osxphotos export export database to find photos that were previously exported, those that were not previously exported, and those that were previously exported but are now missing from the export (e.g. they were moved or deleted).

All would take the export path: --in-exportdb EXPORT_PATH which could be an export location or the actual database if --exportdb option was used at export.

--in-exportdb EXPORT_PATH: find all photos that are in the Photos library and were previously exported to EXPORT_PATH. --not-in-exportdb EXPORT_PATH: find all photos that are in the Photos library and were not previously exported to EXPORT_PATH. --missing-from-export EXPORT_PATH: find all photos that are in the Photos library that were previously exported to EXPORT_PATH but are no longer there. (UUID is in export database but file is missing from EXPORT_PATH).

tural-ali commented 1 month ago

thank you! waiting for this feature