Closed carlosjfcasero closed 2 months ago
Hi,
nothing obviously wrong that I can see. From the top of my head I can think of the following explanations:
2017
is contained in subfolders and/or file names below 2015
, and thus ignored (unlikely?)Scan settings
)Can you please check if any of these points might apply?
Best Regards, Salvoxia
Hi @Salvoxia. That was exactly my problem. I previously ran the script with album_level=1 so an album called "2015" was already created. I deleted that album and new albums were created. Thanks a lot!
I was just wondering if an enhancement could be done to allow same image to be part of two albums. For example, for the root path /a/b, --album_level=1 --allow_duplicates=true, it would be nice to have an album 'a' with 'a' elements together with 'b' elements and another 'b' album just with 'b' elements
Absolutely possible. You would have to run the script with different combinations of root_path
, and --album-levels
when specifying --allow-duplicates
.
Example:
/external_libs/photos/A/1.jpg
/external_libs/photos/A/B/2.jpg
Running with root_path = /external_libs/photos
and --album-levels = 1
would create an album
Album A
- 1.jpg
- 2.jpg
After that, running with root_path = /external_libs/photos
and --album-levels = 2
and --alow-duplicates = true
would create then create the following album:
Album A B
- 2.jpg
It would also create Album A
with 1.jpg
, but since Album A
already exists an 1.jpg
is already assigned to it, nothing changes here.
Is that would you mean?
That's exactly what I mean! Just to confirm, right now it's not possible due to technical limitations, it would be needed a PR, right?
That's correct. A PR is welcome, otherwise I'll implement it myself :)
I'm afraid I don't know how to do it in Python, sorry 😢
Implemented in #43 and available in the latest
Docker image. Will be included in the next release.
Thank you so much!
Hi! I'm facing an issue when trying to dry-run album creation. The folder I'm trying to scan contains following structure:
and 2015 folder has 27 folders (with images inside) and 1 image.
When running following command
docker run -e API_URL="https://tld/api" -e API_KEY="XXX" -e ROOT_PATH="/usr/src/app/nextcloud" -e ALBUM_LEVELS="2" -e IGNORE="2017" -e LOG_LEVEL="DEBUG" salvoxia/immich-folder-album-creator:latest /script/immich_auto_album.sh
I'm getting following albums (just showing the ones with errors):I can see two issues here:
Am I doing something wrong?