librespot/protocol/proto/show_request.proto

96 lines
2.5 KiB
Protocol Buffer
Raw Normal View History

2024-12-15 19:51:02 +00:00
// Extracted from: Spotify 1.2.52.442 (windows)
syntax = "proto2";
package spotify.show_cosmos.proto;
import "metadata/episode_metadata.proto";
import "metadata/show_metadata.proto";
2021-12-10 19:33:43 +00:00
import "played_state/episode_played_state.proto";
2024-12-15 19:51:02 +00:00
import "played_state/show_played_state.proto";
import "show_episode_state.proto";
import "show_show_state.proto";
2024-12-15 19:51:02 +00:00
import "show_offline_state.proto";
2021-12-10 19:33:43 +00:00
option objc_class_prefix = "SPTShowCosmos";
option optimize_for = CODE_SIZE;
message Item {
2024-12-15 19:51:02 +00:00
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;
2021-12-10 19:33:43 +00:00
optional cosmos_util.proto.EpisodePlayState episode_play_state = 5;
}
message Header {
optional cosmos_util.proto.ShowMetadata show_metadata = 1;
optional ShowCollectionState show_collection_state = 2;
2024-12-15 19:51:02 +00:00
optional cosmos_util.proto.ShowPlayState show_play_state = 3;
optional ShowOfflineState show_offline_state = 4;
}
message Response {
2024-12-15 19:51:02 +00:00
reserved "online_data";
reserved 3;
reserved 9;
repeated Item item = 1;
optional Header header = 2;
optional uint32 unfiltered_length = 4;
optional uint32 length = 5;
optional bool loading_contents = 6;
optional uint32 unranged_length = 7;
optional AuxiliarySections auxiliary_sections = 8;
2021-12-10 19:33:43 +00:00
optional uint32 range_offset = 10;
}
message AuxiliarySections {
2024-12-15 19:51:02 +00:00
reserved 2;
reserved 4;
reserved 5;
reserved 6;
reserved 7;
reserved 8;
optional ContinueListeningSection continue_listening = 1;
optional TrailerSection trailer_section = 3;
2021-12-10 19:33:43 +00:00
optional LatestUnplayedEpisodeSection latest_unplayed_episode_section = 9;
2024-12-15 19:51:02 +00:00
optional NextBestEpisodeSection next_best_episode_section = 10;
optional SavedEpisodesSection saved_episodes_section = 11;
}
message ContinueListeningSection {
optional Item item = 1;
}
message TrailerSection {
optional Item item = 1;
}
2021-12-10 19:33:43 +00:00
message LatestUnplayedEpisodeSection {
optional Item item = 1;
}
2024-12-15 19:51:02 +00:00
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;
}