Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion immich/albums.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,18 @@ func (ic *ImmichClient) GetAllAlbums(ctx context.Context) ([]AlbumSimplified, er
if err != nil {
return nil, err
}
return albums, nil

var sharedAlbums []AlbumSimplified
err2 := ic.newServerCall(ctx, EndPointGetAllAlbums).
do(
getRequest("/albums?shared=true", setAcceptJSON()),
responseJSON(&sharedAlbums),
)
if err2 != nil {
return nil, err
}

return append(albums, sharedAlbums...), nil
}

type AlbumContent struct {
Expand Down