simulot / immich-go

An alternative to the immich-CLI command that doesn't depend on nodejs installation. It tries its best for importing google photos takeout archives.
GNU Affero General Public License v3.0
1.71k stars 52 forks source link

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

Open rbuchberger opened 1 month ago

rbuchberger commented 1 month ago

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 commented 1 month ago

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

rbuchberger commented 1 month ago

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 commented 1 month ago

It's on my todo list

simulot commented 1 month ago

It's included into the next major release.

rbuchberger commented 1 month ago

You’re amazing, thanks!

simulot commented 6 days ago

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