Salvoxia / immich-folder-album-creator

Automatically create and populate albums in Immich from a folder structure in external libraries
https://hub.docker.com/r/salvoxia/immich-folder-album-creator
159 stars 9 forks source link

[FR] Specify multiple root paths #6

Closed fl4shback closed 5 months ago

fl4shback commented 5 months ago

Hi!

Do you think it would be possible to support inputting multiple root paths ? I'm currently running multiple containers on a swarm cron planning for this.

Thanks.

Salvoxia commented 5 months ago

Absolutely. However, we need to consider what happens if the same folder name is found in different root paths. The most straight-forward behavior would be to simply put all images from all root paths in the same album. Is that what you would expect as well?

fl4shback commented 5 months ago

For my case, I don't have duplicate folder names in the different root folders but I guess It would be expected to reuse the same album, yes.

Salvoxia commented 5 months ago

Implementation is done. Depending on how you use the script you can:

Worked as expected in my tests. If you can confirm this for you as well, I'll finish by updating the documentation and tag a new release with this.

fl4shback commented 5 months ago

Looks good on my side ! Just did a test and it worked as expected too. Thanks !

Salvoxia commented 5 months ago

Implemented in v0.3.0