Replies: 4 comments
-
Neat! You might want to |
Beta Was this translation helpful? Give feedback.
-
To confirm, you are suggesting replacing: with: to make sure the Url is a string? |
Beta Was this translation helpful? Give feedback.
-
I was suggesting: from urllib.parse import urljoin
...
r = requests.get(urljoin(apiUrl, 'api/albums'), **requests_kwargs) That way if the user forgets the trailing / off the Immich url it will still work. |
Beta Was this translation helpful? Give feedback.
-
Thanks. That looks good! I have updated the script in my initial post. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for adding the include and exclude album feature.
If it is of use to others, here is a short python script to list album ID's and names from Immich in a form that can be added to the config.yaml file. Each album produces a line such as:
- 44a1d764-46fd-4d84-b328-d031f5f5cfba # Travel-Provence
I use a simple grep command to get a subset of albums I am interested in. For example
python3 ListAlbums.py | grep -i travel
gives all the album that have travel in their name.
Rob
Beta Was this translation helpful? Give feedback.
All reactions