Add SearchAlbum endpoint

This commit is contained in:
Alexander
2026-05-07 14:24:14 +02:00
parent de52fcbc79
commit fb2e4b9107
9 changed files with 374 additions and 97 deletions
+16
View File
@@ -29,6 +29,9 @@ service MetadataService {
// GetAlbumTracks retrieves all tracks on an album.
rpc GetAlbumTracks(GetAlbumTracksRequest) returns (GetAlbumTracksResponse);
// SearchAlbums searches for albums by name, optionally filtered by artist.
rpc SearchAlbums(SearchAlbumsRequest) returns (SearchAlbumsResponse);
// SyncArtist triggers ingestion of an artist from external sources.
rpc SyncArtist(SyncArtistRequest) returns (SyncArtistResponse);
}
@@ -79,6 +82,19 @@ message GetAlbumTracksRequest {
Provider provider = 2;
}
message SearchAlbumsRequest {
string query = 1;
string artist = 2;
int32 limit = 3;
int32 offset = 4;
Provider provider = 5;
}
message SearchAlbumsResponse {
repeated Album albums = 1;
int32 total = 2;
}
message SyncArtistRequest {
oneof target {
string name = 1;