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
222 stars 13 forks source link

Can not scan the folder while running the code. #22

Closed hinson-li closed 3 months ago

hinson-li commented 3 months ago

Hello, i am still new to TrueNAS and i don't know is it a dumb question or not. I try to run the code in my TrueNAS scale via SSH. The program can get the photos number, however it can not get the albums from the file name.

time=2024-07-24T20:48:21.957-07:00 level=INFO msg=Detected Immich server version 1.109.2 time=2024-07-24T20:48:21.957-07:00 level=INFO msg=Requesting all assets time=2024-07-24T20:48:33.998-07:00 level=INFO msg=75744 photos found time=2024-07-24T20:48:33.998-07:00 level=INFO msg=Sorting assets to corresponding albums using folder name time=2024-07-24T20:48:34.027-07:00 level=INFO msg=0 albums identified time=2024-07-24T20:48:34.027-07:00 level=INFO msg=Album list: []

Would it be a problem if i name the file and dataset with spacebar? As i call the program like this sudo python3 ./immich_auto_album.py /mnt/My\ HDD/Media/Google\ Drive\ backup [myapiurl] [myapikey] Or i should run the code in an other way?

My TrueNAS version is :Dragonfish-24.04.2 Immich Version:1.109.2

hinson-li commented 3 months ago

I just find out that i don't need to type the whole path to the code instead of just the same path in immich external library. so it will be /'Google Drive backup' instead of the /mnt/My\ HDD/Media/Google\ Drive\ backup

Salvoxia commented 3 months ago

That's what I tried to document in this part of the README file. Does this part clarify what you need to know or is there any way to improve on that documentation from your point of view?

hinson-li commented 3 months ago

Yes it helps. Thanks for writing this script, it is very convenience.

Salvoxia commented 3 months ago

Ok thanks, closing this issue then.