Skip to content

Commit 3ff8c2f

Browse files
committed
Merge pull request #23 from adammw/metadata-patch
Update metadata protobuf schema
2 parents ecb041b + a5e2355 commit 3ff8c2f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

proto/metadata.desc

610 Bytes
Binary file not shown.

proto/metadata.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ message Artist {
2929
repeated ActivityPeriod activity_period = 13;
3030
repeated Restriction restriction = 14;
3131
repeated Artist related = 15;
32+
optional bool is_portrait_album_cover = 16;
33+
optional ImageGroup portrait_group = 17;
3234
}
3335
message AlbumGroup {
3436
repeated Album album = 1;
@@ -59,6 +61,8 @@ message Album {
5961
repeated Copyright copyright = 13;
6062
repeated Restriction restriction = 14;
6163
repeated Album related = 15;
64+
repeated SalePeriod sale_period = 16;
65+
optional ImageGroup cover_group = 17;
6266
}
6367

6468
message Track {
@@ -75,6 +79,8 @@ message Track {
7579
repeated Restriction restriction = 11;
7680
repeated AudioFile file = 12;
7781
repeated Track alternative = 13;
82+
repeated SalePeriod sale_period = 14;
83+
repeated AudioFile preview = 15;
7884
}
7985
message Image {
8086
enum Size {
@@ -88,9 +94,13 @@ message Image {
8894
optional sint32 width = 3;
8995
optional sint32 height = 4;
9096
}
97+
message ImageGroup {
98+
repeated Image image = 1;
99+
}
91100
message Biography {
92101
optional string text = 1;
93102
repeated Image portrait = 2;
103+
repeated ImageGroup portrait_group = 3;
94104
}
95105
message Disc {
96106
optional sint32 number = 1;
@@ -118,10 +128,18 @@ message Restriction {
118128
optional string countries_forbidden = 3;
119129
optional Type type = 4;
120130
}
131+
132+
message SalePeriod {
133+
repeated Restriction restriction = 1;
134+
optional Date start = 2;
135+
optional Date end = 3;
136+
}
137+
121138
message ExternalId {
122139
optional string type = 1;
123140
optional string id = 2;
124141
}
142+
125143
message AudioFile {
126144
enum Format {
127145
OGG_VORBIS_96 = 0;
@@ -130,6 +148,7 @@ message AudioFile {
130148
MP3_256 = 3;
131149
MP3_320 = 4;
132150
MP3_160 = 5;
151+
MP3_96 = 6;
133152
}
134153
optional bytes file_id = 1;
135154
optional Format format = 2;

0 commit comments

Comments
 (0)