question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`query --add-to-album` does not add photos to album with a `--name` query

See original GitHub issue

Describe 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:

  1. What’s the full command line you used with osxphotos?

osxphotos query --name (file_name).jpg --add-to-album (album_name)

  1. 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:open
  • Created 10 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RhetTbullcommented, Nov 19, 2022

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.

0reactions
RhetTbullcommented, Nov 20, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I add photos to album and archive at the same (vs ...
For photos uploaded from a computer using Backup & Sync, you can search in Google Photos with the title of folders in Google...
Read more >
Query album by name(Graph API) - facebook - Stack Overflow
Using the name of the query conditions to query albumid/objectid. FQL syntax used to do the following: SELECT aid, object_id. FROM album. WHERE ......
Read more >
Use albums in Photos on iPhone - Apple Support
Add a photo or video to an album ... Tap Add to Album, then do one of the following: Start a new album:...
Read more >
osxphotos/README.md at master - GitHub
You can query the Photos library database — for example, file name, file path, and metadata such as keywords/tags, persons/faces, albums, etc. You...
Read more >
A Beginner's Guide To Google Photos - The Edublogger
If you don't have a Chromecast, you won't see this icon. Favorite: Adds the photo to your favorites folder. More Options: Lets you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found