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

error: argument -a/--album-levels: expected one argument` #29

Closed dushyantahuja closed 3 months ago

dushyantahuja commented 3 months ago

python immich_auto_album.py -a '-2,-3' -s ":" /home/users/Archive http://****:2283/api *****************

gives the following error:

immich_auto_album.py: error: argument -a/--album-levels: expected one argument

Am using the bare metal script (have just downloaded it) and installed. Not sure what the best way is.

Thanks for your help

Salvoxia commented 3 months ago

Hi,

sorry you're having problems with the script. When using negative album level ranges you must follow a specific syntax for passing the argument to the script, otherwise the arguments parser gets a hiccup and throws the error you experienced. Try this: python immich_auto_album.py -a='-2,-3' -s ":" /home/users/Archive http://****:2283/api ***************** Emphasis is on the equals sign = separating the argument name from the value.

I updated the readme to draw attention to this special case.

dushyantahuja commented 3 months ago

Not at all - it's an amazing script. And thanks for being so proactive.