mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
Update protobuf files (#1424)
* update protobuf definitions * add additionally required proto files * update version.rs * adjust code to protobuf changes * fix formatting * apply suggestions, improve errors
This commit is contained in:
parent
0ad1f7249b
commit
2a574267ae
335 changed files with 3331 additions and 1204 deletions
|
@ -1,4 +1,4 @@
|
|||
// Extracted from: Spotify 1.1.73.517 (macOS)
|
||||
// Extracted from: Spotify 1.2.52.442 (windows)
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
|
@ -7,39 +7,37 @@ package spotify.show_cosmos.proto;
|
|||
import "metadata/episode_metadata.proto";
|
||||
import "metadata/show_metadata.proto";
|
||||
import "played_state/episode_played_state.proto";
|
||||
import "played_state/show_played_state.proto";
|
||||
import "show_episode_state.proto";
|
||||
import "show_show_state.proto";
|
||||
import "podcast_virality.proto";
|
||||
import "transcripts.proto";
|
||||
import "podcastextensions.proto";
|
||||
import "clips_cover.proto";
|
||||
import "show_access.proto";
|
||||
import "podcast_ratings.proto";
|
||||
import "greenroom_extension.proto";
|
||||
import "show_offline_state.proto";
|
||||
|
||||
option objc_class_prefix = "SPTShowCosmos";
|
||||
option optimize_for = CODE_SIZE;
|
||||
|
||||
message Item {
|
||||
reserved 6;
|
||||
reserved 7;
|
||||
reserved 8;
|
||||
reserved 9;
|
||||
optional string header_field = 1;
|
||||
optional cosmos_util.proto.EpisodeMetadata episode_metadata = 2;
|
||||
optional EpisodeCollectionState episode_collection_state = 3;
|
||||
optional EpisodeOfflineState episode_offline_state = 4;
|
||||
optional cosmos_util.proto.EpisodePlayState episode_play_state = 5;
|
||||
optional corex.transcripts.metadata.EpisodeTranscript episode_transcripts = 7;
|
||||
optional podcastvirality.v1.PodcastVirality episode_virality = 8;
|
||||
optional clips.ClipsCover episode_clips = 9;
|
||||
|
||||
reserved 6;
|
||||
}
|
||||
|
||||
message Header {
|
||||
optional cosmos_util.proto.ShowMetadata show_metadata = 1;
|
||||
optional ShowCollectionState show_collection_state = 2;
|
||||
optional ShowPlayState show_play_state = 3;
|
||||
optional cosmos_util.proto.ShowPlayState show_play_state = 3;
|
||||
optional ShowOfflineState show_offline_state = 4;
|
||||
}
|
||||
|
||||
message Response {
|
||||
reserved "online_data";
|
||||
reserved 3;
|
||||
reserved 9;
|
||||
repeated Item item = 1;
|
||||
optional Header header = 2;
|
||||
optional uint32 unfiltered_length = 4;
|
||||
|
@ -47,23 +45,21 @@ message Response {
|
|||
optional bool loading_contents = 6;
|
||||
optional uint32 unranged_length = 7;
|
||||
optional AuxiliarySections auxiliary_sections = 8;
|
||||
optional podcast_paywalls.ShowAccess access_info = 9;
|
||||
optional uint32 range_offset = 10;
|
||||
|
||||
reserved 3, "online_data";
|
||||
}
|
||||
|
||||
message AuxiliarySections {
|
||||
optional ContinueListeningSection continue_listening = 1;
|
||||
optional podcast.extensions.PodcastTopics topics_section = 2;
|
||||
optional TrailerSection trailer_section = 3;
|
||||
optional podcast.extensions.PodcastHtmlDescription html_description_section = 5;
|
||||
optional clips.ClipsCover clips_section = 6;
|
||||
optional ratings.PodcastRating rating_section = 7;
|
||||
optional greenroom.api.extendedmetadata.v1.GreenroomSection greenroom_section = 8;
|
||||
optional LatestUnplayedEpisodeSection latest_unplayed_episode_section = 9;
|
||||
|
||||
reserved 2;
|
||||
reserved 4;
|
||||
reserved 5;
|
||||
reserved 6;
|
||||
reserved 7;
|
||||
reserved 8;
|
||||
optional ContinueListeningSection continue_listening = 1;
|
||||
optional TrailerSection trailer_section = 3;
|
||||
optional LatestUnplayedEpisodeSection latest_unplayed_episode_section = 9;
|
||||
optional NextBestEpisodeSection next_best_episode_section = 10;
|
||||
optional SavedEpisodesSection saved_episodes_section = 11;
|
||||
}
|
||||
|
||||
message ContinueListeningSection {
|
||||
|
@ -77,3 +73,23 @@ message TrailerSection {
|
|||
message LatestUnplayedEpisodeSection {
|
||||
optional Item item = 1;
|
||||
}
|
||||
|
||||
message NextBestEpisodeSection {
|
||||
enum Label {
|
||||
UNKNOWN = 0;
|
||||
TRAILER = 1;
|
||||
CONTINUE_LISTENING = 2;
|
||||
LATEST_PUBLISHED = 3;
|
||||
UP_NEXT = 4;
|
||||
FIRST_PUBLISHED = 5;
|
||||
}
|
||||
|
||||
optional Label label = 1;
|
||||
optional Item item = 2;
|
||||
}
|
||||
|
||||
message SavedEpisodesSection {
|
||||
optional uint32 saved_episodes_count = 1;
|
||||
optional uint32 downloaded_episodes_count = 2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue