We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50e4895 + cce0850 commit 93357ebCopy full SHA for 93357eb
immich_auto_album.py
@@ -1502,9 +1502,15 @@ def set_album_properties_in_model(album_model_to_update: AlbumModel):
1502
# Set share_with
1503
if share_with:
1504
for album_share_user in share_with:
1505
+ # Resolve share user-specific share role syntax <name>=<role>
1506
+ share_user_name, share_user_role = parse_separated_string(album_share_user, '=')
1507
+ # Fallback to default
1508
+ if share_user_role is None:
1509
+ share_user_role = share_role
1510
+
1511
album_share_with = {
- 'user': album_share_user,
- 'role': share_role
1512
+ 'user': share_user_name,
1513
+ 'role': share_user_role
1514
}
1515
album_model_to_update.share_with.append(album_share_with)
1516
0 commit comments