`query --add-to-album` does not add photos to album with a `--name` query
See original GitHub issueDescribe the bug
osxphotos query --name (file_name).jpg --add-to-album (album_name)
creates the album and finds the intended photo(s), but does not add the photos to the album.
To Reproduce
Steps to reproduce the behavior:
- What’s the full command line you used with osxphotos?
osxphotos query --name (file_name).jpg --add-to-album (album_name)
- What was the error output?
There is no error output. Stdout contains:
Adding 6 photos to album 'ABCDELETE'. Note: Photos may prompt you to confirm this action.
followed by the (correct) list of photos.
Expected behavior The photos are added to the album, or an error is printed describing why that didn’t happen.
Desktop (please complete the following information):
- OS: Monterey 12.6
- osxphotos version:
osxphotos, version 0.54.3
Additional context
Workaround: Capture the output from the above query, grab the photo UUIDs, and re-run osxphotos query --uuid (xxxx) --add-to-photos (album_name)
for each photo. That works.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (3 by maintainers)
This is new behavior as I know this used to work. I did some recent refactoring on PhotoScript which is the library used by osxphotos to add the photos to albums and I’m guessing this caused a regression. Surprising as there’s good test coverage but I’ll investigate this weekend.
I’ve added a test case for this scenario (which passes on my machine). I’ll hopefully get to test it out on Big Sur later in the week.