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

Multiple import paths in external library #8

Closed DJF3 closed 5 months ago

DJF3 commented 5 months ago

My photos are on a NAS (readonly NFS share) mounted in Immich. The external album has 2 import paths:

/usr/src/app/mypics/2023/
                        2023-jan
                        2023-feb
                        2023-mar
/usr/src/app/mypics/_mobile/2023/   
                                2023-photos-anna
                                2023-photos-dj

FIRST Go to /mypics/2023 and run the script for the current folder . As expected the script generates albums

SECOND Go to /mypics/_mobile/2023/ and run the script again for the current folder: At this point I would expect the script to generate albums

But these are not created.

Is this code compatible with "multiple import paths" in an external library?

Salvoxia commented 5 months ago

Yes it is, see here. Can you please list all arguments you passed to the script / set as environment variables (if you are using the Docker container) and/or provide the initial log output of the script when run with --log-level DEBUG / --env-var LOG_LEVEL=DEBUG?

DJF3 commented 5 months ago

Ah, that's interesting. I was using version 0.20, not later releases which support additional root_paths! Let me re-test.

DJF3 commented 5 months ago

Working fine with the new code, thank you!