Skip to content
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

Add --find-orphans option to CLI #84

Closed
RhetTbull opened this issue Mar 25, 2020 · 6 comments
Closed

Add --find-orphans option to CLI #84

RhetTbull opened this issue Mar 25, 2020 · 6 comments
Labels
feature request New feature or request

Comments

@RhetTbull
Copy link
Owner

Add option to find orphan photos (if any) -- e.g. those photos that are in the library but not referenced in the database

@RhetTbull RhetTbull added the feature request New feature or request label Mar 25, 2020
RhetTbull added a commit that referenced this issue Aug 13, 2022
RhetTbull added a commit that referenced this issue Aug 13, 2022
* Initial implementation of orphan command

* Implemented orphans command, #84
@msg43
Copy link

msg43 commented Mar 19, 2024

@RhetTbull Hi, just to be clear, what is a "photos that are in the library but not referenced in the database"?
The physical data is in the photolibrary database but there is no "entry" so the file might as well not be there?
What do you recommend I do if I have hundreds of those?
(I looked in the CLI tutorial as well before asking).
Thanks!!

@RhetTbull
Copy link
Owner Author

@msg43 the orphans are photos that are in the .photoslibrary folder but do not appear to be referenced in the actual Photos database. They could be lost photos (due to an error) or photos that you deleted but (also due to error) they never got actually deleted off disk. I've never seen more than one or two. Can you send me the output of the orphans command to osxphotos.py@gmail.com? I'll take a look to verify it looks right and the command is running as intended. You could inspect these and see if they are photos you want to keep and if so, import them into the library.

@msg43
Copy link

msg43 commented Mar 22, 2024 via email

@msg43
Copy link

msg43 commented Mar 29, 2024

Hi @RhetTbull, what do you think of my files? Is there any easy way for me to batch re-add these file links to the database?

@RhetTbull
Copy link
Owner Author

Hi @msg43 I just sent you an email reply. The email includes details for using the --export option to export the orphans then re-import them into the library.

@msg43
Copy link

msg43 commented Mar 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants