Skip to content

Commit c9bc280

Browse files
committed
fix(server): re-generate proto
fix(server): re-generate proto
1 parent 787468e commit c9bc280

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

server/proto/metadata/v1alpha1/artist.proto

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "metadata/v1alpha1/album.proto";
77
message ArtistSong {
88
string id = 1;
99
string title = 2;
10+
string artist = 3;
1011
repeated Artist artists = 4;
1112
float duration = 5;
1213
int32 disc_number = 6;

server/src/api/metadata.v1alpha1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ pub struct ArtistSong {
4949
pub id: ::prost::alloc::string::String,
5050
#[prost(string, tag = "2")]
5151
pub title: ::prost::alloc::string::String,
52+
#[prost(string, tag = "3")]
53+
pub artist: ::prost::alloc::string::String,
5254
#[prost(message, repeated, tag = "4")]
5355
pub artists: ::prost::alloc::vec::Vec<Artist>,
5456
#[prost(float, tag = "5")]

server/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ pub mod api {
196196
track_number: i32::try_from(model.track.unwrap_or_default()).unwrap(),
197197
artists: model.artists.into_iter().map(Into::into).collect(),
198198
album: Some(model.album.into()),
199+
artist: model.artist,
199200
..Default::default()
200201
}
201202
}
@@ -214,6 +215,7 @@ pub mod api {
214215
Some(album) => Some(album.into()),
215216
None => None,
216217
},
218+
artist: self.artist,
217219
..Default::default()
218220
}
219221
}

0 commit comments

Comments
 (0)