Deduplicate GetAlbum response: merge release info into AlbumDetail, track release into TrackDetail
This commit is contained in:
@@ -69,6 +69,7 @@ message AlbumDetail {
|
||||
string label = 10;
|
||||
MonitorState monitor_state = 11;
|
||||
DownloadInfo download = 12;
|
||||
AlbumReleaseDetail release = 13;
|
||||
}
|
||||
|
||||
message DownloadInfo {
|
||||
@@ -85,7 +86,6 @@ message GetAlbumRequest {
|
||||
message AlbumInfo {
|
||||
AlbumDetail album = 1;
|
||||
repeated TrackDetail tracks = 2;
|
||||
AlbumReleaseDetail release = 3;
|
||||
}
|
||||
|
||||
message GetAlbumResponse {
|
||||
@@ -110,7 +110,13 @@ message TrackDetail {
|
||||
string isrc = 7;
|
||||
bool explicit = 8;
|
||||
repeated ArtistCredit artists = 9;
|
||||
TrackFile file = 10;
|
||||
string file_path = 10;
|
||||
int64 file_size = 11;
|
||||
string format = 12;
|
||||
int32 bit_depth = 13;
|
||||
int32 sample_rate = 14;
|
||||
int32 channels = 15;
|
||||
int32 bitrate_kbps = 16;
|
||||
}
|
||||
|
||||
message ArtistCredit {
|
||||
@@ -118,12 +124,6 @@ message ArtistCredit {
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message TrackFile {
|
||||
string path = 1;
|
||||
string format = 2;
|
||||
int64 size = 3;
|
||||
}
|
||||
|
||||
message AlbumReleaseDetail {
|
||||
string id = 1;
|
||||
string format = 2;
|
||||
@@ -139,23 +139,6 @@ message AlbumReleaseDetail {
|
||||
bool has_cue_sheet = 12;
|
||||
bool has_rip_log = 13;
|
||||
string path = 14;
|
||||
repeated TrackReleaseDetail tracks = 15;
|
||||
}
|
||||
|
||||
message TrackReleaseDetail {
|
||||
string id = 1;
|
||||
string track_id = 2;
|
||||
string title = 3;
|
||||
int32 track_number = 4;
|
||||
int32 disc_number = 5;
|
||||
int32 duration_ms = 6;
|
||||
string format = 7;
|
||||
int32 bit_depth = 8;
|
||||
int32 sample_rate = 9;
|
||||
int32 channels = 10;
|
||||
int32 bitrate_kbps = 11;
|
||||
int64 file_size = 12;
|
||||
string file_path = 13;
|
||||
}
|
||||
|
||||
message MonitoredRelease {
|
||||
|
||||
Reference in New Issue
Block a user