From 77ccd6cfc2597638726852dc3ae2891b4010efdf Mon Sep 17 00:00:00 2001 From: Salvoxia Date: Fri, 17 Jan 2025 10:52:14 +0100 Subject: [PATCH 1/2] Fix: Regression: Fixed --share-with = syntax --- immich_auto_album.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/immich_auto_album.py b/immich_auto_album.py index fed461c..febf6b6 100644 --- a/immich_auto_album.py +++ b/immich_auto_album.py @@ -1502,9 +1502,15 @@ def set_album_properties_in_model(album_model_to_update: AlbumModel): # Set share_with if share_with: for album_share_user in share_with: + # Resolve share user-specific share role syntax = + share_user_name, share_user_role = parse_separated_string(album_share_user, '=') + # Fallback to default + if share_user_role is None: + share_user_role = share_role + album_share_with = { - 'user': album_share_user, - 'role': share_role + 'user': share_user_name, + 'role': share_user_role } album_model_to_update.share_with.append(album_share_with) From cce08502558be3c8393183a601d0b2ed31290c0d Mon Sep 17 00:00:00 2001 From: Salvoxia Date: Fri, 17 Jan 2025 10:53:46 +0100 Subject: [PATCH 2/2] chore: Satisfy pylint --- immich_auto_album.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/immich_auto_album.py b/immich_auto_album.py index febf6b6..3db79a5 100644 --- a/immich_auto_album.py +++ b/immich_auto_album.py @@ -1507,7 +1507,7 @@ def set_album_properties_in_model(album_model_to_update: AlbumModel): # Fallback to default if share_user_role is None: share_user_role = share_role - + album_share_with = { 'user': share_user_name, 'role': share_user_role