mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
56 lines
1,013 B
Protocol Buffer
56 lines
1,013 B
Protocol Buffer
|
// Extracted from: Spotify 1.1.61.583 (Windows)
|
||
|
|
||
|
syntax = "proto3";
|
||
|
|
||
|
package spotify.media_manifest;
|
||
|
|
||
|
option optimize_for = CODE_SIZE;
|
||
|
|
||
|
message AudioFile {
|
||
|
enum Format {
|
||
|
OGG_VORBIS_96 = 0;
|
||
|
OGG_VORBIS_160 = 1;
|
||
|
OGG_VORBIS_320 = 2;
|
||
|
MP3_256 = 3;
|
||
|
MP3_320 = 4;
|
||
|
MP3_160 = 5;
|
||
|
MP3_96 = 6;
|
||
|
MP3_160_ENC = 7;
|
||
|
AAC_24 = 8;
|
||
|
AAC_48 = 9;
|
||
|
FLAC_FLAC = 16;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
message File {
|
||
|
int32 bitrate = 3;
|
||
|
string mime_type = 4;
|
||
|
|
||
|
oneof file {
|
||
|
ExternalFile external_file = 1;
|
||
|
FileIdFile file_id_file = 2;
|
||
|
}
|
||
|
|
||
|
message ExternalFile {
|
||
|
string method = 1;
|
||
|
string url = 2;
|
||
|
bytes body = 3;
|
||
|
bool is_webgate_endpoint = 4;
|
||
|
}
|
||
|
|
||
|
message FileIdFile {
|
||
|
string file_id_hex = 1;
|
||
|
AudioFile.Format download_format = 2;
|
||
|
EncryptionType encryption = 3;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
message Files {
|
||
|
repeated File files = 1;
|
||
|
}
|
||
|
|
||
|
enum EncryptionType {
|
||
|
NONE = 0;
|
||
|
AES = 1;
|
||
|
}
|