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

Feature request: Use zip file name as album name #466

Open
rbuchberger opened this issue Aug 30, 2024 · 6 comments
Open

Feature request: Use zip file name as album name #466

rbuchberger opened this issue Aug 30, 2024 · 6 comments
Milestone

Comments

@rbuchberger
Copy link

Hi! Again, thanks a ton for this software.

My Kid's preschool lets us download photos from time to time, and I like to archive them directly into Immich. They're provided as a flat zip file (no subdirectories).

If I use the create-album-folder option, they end up in an album called 'no-folder-name'. Would it be possible to use the name of the zip file instead?

INFO | added to an album | file=1000021615.jpg album=no-folder-name reason="option -create-album-folder" time="2024-08-30T10:13.01 CEST"
@simulot
Copy link
Owner

simulot commented Aug 31, 2024

Have you tested with the option -album="ALBUM NAME" ?

@rbuchberger
Copy link
Author

rbuchberger commented Aug 31, 2024

That's what I ended up doing, but I wrote a little script to set the album name from the name of each zip file. It was just a thought; taking the zip file basename as the album name might be better behavior than falling back to no-folder-name.

upload_photos() {
  for z in *.zip; do
    immich-go upload -album="${z%.zip}" "$z"
  done
}

@simulot
Copy link
Owner

simulot commented Aug 31, 2024

It's on my todo list

@simulot simulot added this to the new CLI milestone Sep 8, 2024
@simulot
Copy link
Owner

simulot commented Sep 8, 2024

It's included into the next major release.

@rbuchberger
Copy link
Author

You’re amazing, thanks!

@simulot
Copy link
Owner

simulot commented Oct 13, 2024

It is implemented the alpha release https://github.com/simulot/immich-go/releases/tag/v0.23.0-alpha2

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

No branches or pull requests

2 participants