From d17ec5a0459d4c8703bd40c9c25969d2ec4bd5ec Mon Sep 17 00:00:00 2001 From: Luan Date: Sun, 6 Apr 2025 20:38:42 -0300 Subject: [PATCH] chore: lint --- protos/video_streaming/buffered_range.proto | 5 ++--- protos/video_streaming/client_abr_state.proto | 2 +- protos/video_streaming/crypto_params.proto | 14 ++++++------- .../encrypted_player_request.proto | 6 +++--- .../format_initialization_metadata.proto | 4 ++-- protos/video_streaming/live_metadata.proto | 2 +- .../video_streaming/media_capabilities.proto | 2 +- protos/video_streaming/media_header.proto | 2 +- .../video_streaming/next_request_policy.proto | 2 +- protos/video_streaming/onesie_header.proto | 20 +++++++++---------- .../video_streaming/onesie_header_type.proto | 2 +- .../onesie_player_request.proto | 12 +++++------ .../onesie_player_response.proto | 10 +++++----- .../video_streaming/onesie_proxy_status.proto | 2 +- protos/video_streaming/onesie_request.proto | 18 ++++++++--------- protos/video_streaming/playback_cookie.proto | 2 +- .../playback_start_policy.proto | 2 +- .../request_cancellation_policy.proto | 2 +- protos/video_streaming/sabr_error.proto | 2 +- protos/video_streaming/sabr_redirect.proto | 2 +- protos/video_streaming/sabr_seek.proto | 2 +- .../stream_protection_status.proto | 2 +- protos/video_streaming/streamer_context.proto | 4 ++-- protos/video_streaming/time_range.proto | 2 +- .../video_playback_abr_request.proto | 8 ++++---- 25 files changed, 65 insertions(+), 66 deletions(-) diff --git a/protos/video_streaming/buffered_range.proto b/protos/video_streaming/buffered_range.proto index f59a2f0..46c718e 100644 --- a/protos/video_streaming/buffered_range.proto +++ b/protos/video_streaming/buffered_range.proto @@ -1,4 +1,3 @@ - syntax = "proto2"; package video_streaming; @@ -13,7 +12,7 @@ message BufferedRange { required int32 end_segment_index = 5; optional TimeRange time_range = 6; optional Kob field9 = 9; - optional YPa field11 = 11; + optional YPa field11 = 11; optional YPa field12 = 12; } @@ -29,4 +28,4 @@ message YPa { optional int32 field1 = 1; optional int32 field2 = 2; optional int32 field3 = 3; -} \ No newline at end of file +} diff --git a/protos/video_streaming/client_abr_state.proto b/protos/video_streaming/client_abr_state.proto index d48738e..a02482e 100644 --- a/protos/video_streaming/client_abr_state.proto +++ b/protos/video_streaming/client_abr_state.proto @@ -48,4 +48,4 @@ message ClientAbrState { optional int32 Tqb = 67; optional int64 sabr_force_max_network_interruption_duration_ms = 68; optional string audio_track_id = 69; -} \ No newline at end of file +} diff --git a/protos/video_streaming/crypto_params.proto b/protos/video_streaming/crypto_params.proto index 514150a..f70276c 100644 --- a/protos/video_streaming/crypto_params.proto +++ b/protos/video_streaming/crypto_params.proto @@ -5,10 +5,10 @@ message CryptoParams { enum CompressionType { NONE = 0; GZIP = 1; - BROTLI = 2; - } - - optional bytes hmac = 4; - optional bytes iv = 5; - optional CompressionType compression_type = 6; -} \ No newline at end of file + BROTLI = 2; + } + + optional bytes hmac = 4; + optional bytes iv = 5; + optional CompressionType compression_type = 6; +} diff --git a/protos/video_streaming/encrypted_player_request.proto b/protos/video_streaming/encrypted_player_request.proto index 7cc8a6b..a9fc9ca 100644 --- a/protos/video_streaming/encrypted_player_request.proto +++ b/protos/video_streaming/encrypted_player_request.proto @@ -11,13 +11,13 @@ message EncryptedPlayerRequest { optional bool serialize_response_as_json = 10; optional bool enable_ad_placements_preroll = 13; optional bool enable_compression = 14; - + message UstreamerFlags { optional bool send_video_playback_config = 2; } optional UstreamerFlags ustreamer_flags = 15; - + optional bytes unencrypted_onesie_player_request = 16; optional bool use_jsonformatter_to_parse_player_response = 17; -} \ No newline at end of file +} diff --git a/protos/video_streaming/format_initialization_metadata.proto b/protos/video_streaming/format_initialization_metadata.proto index 63fd8e8..86c34d7 100644 --- a/protos/video_streaming/format_initialization_metadata.proto +++ b/protos/video_streaming/format_initialization_metadata.proto @@ -13,5 +13,5 @@ message FormatInitializationMetadata { optional .misc.IndexRange index_range = 7; optional int32 field8 = 8; optional int32 duration_ms = 9; - optional int32 field10 = 10; -} \ No newline at end of file + optional int32 field10 = 10; +} diff --git a/protos/video_streaming/live_metadata.proto b/protos/video_streaming/live_metadata.proto index d504eb3..4360dee 100644 --- a/protos/video_streaming/live_metadata.proto +++ b/protos/video_streaming/live_metadata.proto @@ -13,4 +13,4 @@ message LiveMetadata { optional int32 min_seekable_timescale = 13; optional int64 max_seekable_time_ticks = 14; optional int32 max_seekable_timescale = 15; -} \ No newline at end of file +} diff --git a/protos/video_streaming/media_capabilities.proto b/protos/video_streaming/media_capabilities.proto index 20ea84a..80dad84 100644 --- a/protos/video_streaming/media_capabilities.proto +++ b/protos/video_streaming/media_capabilities.proto @@ -21,4 +21,4 @@ message MediaCapabilities { optional int32 max_bitrate_bps = 3; optional int32 spatial_capability_bitmask = 6; } -} \ No newline at end of file +} diff --git a/protos/video_streaming/media_header.proto b/protos/video_streaming/media_header.proto index bfa5101..b05d852 100644 --- a/protos/video_streaming/media_header.proto +++ b/protos/video_streaming/media_header.proto @@ -26,4 +26,4 @@ message MediaHeader { NONE = 1; GZIP = 2; } -} \ No newline at end of file +} diff --git a/protos/video_streaming/next_request_policy.proto b/protos/video_streaming/next_request_policy.proto index ed47fd0..6556912 100644 --- a/protos/video_streaming/next_request_policy.proto +++ b/protos/video_streaming/next_request_policy.proto @@ -9,4 +9,4 @@ message NextRequestPolicy { optional int32 backoff_time_ms = 4; optional .video_streaming.PlaybackCookie playback_cookie = 7; optional string video_id = 8; -} \ No newline at end of file +} diff --git a/protos/video_streaming/onesie_header.proto b/protos/video_streaming/onesie_header.proto index ca66ede..91efde3 100644 --- a/protos/video_streaming/onesie_header.proto +++ b/protos/video_streaming/onesie_header.proto @@ -1,8 +1,8 @@ syntax = "proto2"; package video_streaming; -import "video_streaming/onesie_header_type.proto"; import "video_streaming/crypto_params.proto"; +import "video_streaming/onesie_header_type.proto"; message OnesieHeader { message Field23 { @@ -13,15 +13,15 @@ message OnesieHeader { repeated string itag_denylist = 1; } - optional OnesieHeaderType type = 1; - optional string video_id = 2; - optional string itag = 3; - optional CryptoParams crypto_params = 4; - optional uint64 last_modified = 5; + optional OnesieHeaderType type = 1; + optional string video_id = 2; + optional string itag = 3; + optional CryptoParams crypto_params = 4; + optional uint64 last_modified = 5; optional int64 expected_media_size_bytes = 7; - repeated string restricted_formats = 11; - optional string xtags = 15; - optional int64 sequence_number = 18; + repeated string restricted_formats = 11; + optional string xtags = 15; + optional int64 sequence_number = 18; optional Field23 field23 = 23; optional Field34 field34 = 34; -} \ No newline at end of file +} diff --git a/protos/video_streaming/onesie_header_type.proto b/protos/video_streaming/onesie_header_type.proto index 9c75c9f..4356c91 100644 --- a/protos/video_streaming/onesie_header_type.proto +++ b/protos/video_streaming/onesie_header_type.proto @@ -14,4 +14,4 @@ enum OnesieHeaderType { LAST_HIGH_PRIORITY_HINT = 9; STREAM_METADATA = 16; ENCRYPTED_INNERTUBE_RESPONSE_PART = 25; -} \ No newline at end of file +} diff --git a/protos/video_streaming/onesie_player_request.proto b/protos/video_streaming/onesie_player_request.proto index 1056a9c..c2198d8 100644 --- a/protos/video_streaming/onesie_player_request.proto +++ b/protos/video_streaming/onesie_player_request.proto @@ -4,9 +4,9 @@ package video_streaming; import "misc/common.proto"; message OnesiePlayerRequest { - optional string url = 1; - repeated misc.HttpHeader headers = 2; - optional string body = 3; - optional bool proxied_by_trusted_bandaid = 4; - optional bool skip_response_encryption = 6; -} \ No newline at end of file + optional string url = 1; + repeated misc.HttpHeader headers = 2; + optional string body = 3; + optional bool proxied_by_trusted_bandaid = 4; + optional bool skip_response_encryption = 6; +} diff --git a/protos/video_streaming/onesie_player_response.proto b/protos/video_streaming/onesie_player_response.proto index 4e7529a..1914c81 100644 --- a/protos/video_streaming/onesie_player_response.proto +++ b/protos/video_streaming/onesie_player_response.proto @@ -5,8 +5,8 @@ import "misc/common.proto"; import "video_streaming/onesie_proxy_status.proto"; message OnesiePlayerResponse { - optional OnesieProxyStatus onesie_proxy_status = 1; - optional int32 http_status = 2; - repeated .misc.HttpHeader headers = 3; - optional bytes body = 4; -} \ No newline at end of file + optional OnesieProxyStatus onesie_proxy_status = 1; + optional int32 http_status = 2; + repeated .misc.HttpHeader headers = 3; + optional bytes body = 4; +} diff --git a/protos/video_streaming/onesie_proxy_status.proto b/protos/video_streaming/onesie_proxy_status.proto index dd80cc6..a9e9784 100644 --- a/protos/video_streaming/onesie_proxy_status.proto +++ b/protos/video_streaming/onesie_proxy_status.proto @@ -16,4 +16,4 @@ enum OnesieProxyStatus { ONESIE_PROXY_STATUS_DECOMPRESSION_FAILED = 11; ONESIE_PROXY_STATUS_JSON_PARSING_FAILED = 12; ONESIE_PROXY_STATUS_UNKNOWN_COMPRESSION_TYPE = 13; -} \ No newline at end of file +} diff --git a/protos/video_streaming/onesie_request.proto b/protos/video_streaming/onesie_request.proto index c3d9430..ccba816 100644 --- a/protos/video_streaming/onesie_request.proto +++ b/protos/video_streaming/onesie_request.proto @@ -1,20 +1,20 @@ syntax = "proto2"; package video_streaming; +import "misc/common.proto"; +import "video_streaming/buffered_range.proto"; import "video_streaming/client_abr_state.proto"; import "video_streaming/encrypted_player_request.proto"; import "video_streaming/streamer_context.proto"; -import "video_streaming/buffered_range.proto"; -import "misc/common.proto"; message OnesieRequest { - repeated string urls = 1; + repeated string urls = 1; optional ClientAbrState client_abr_state = 2; optional EncryptedPlayerRequest player_request = 3; optional bytes onesie_ustreamer_config = 4; - optional int32 max_vp9_height = 5; - optional int32 client_display_height = 6; - optional StreamerContext streamer_context = 10; - optional .misc.OnesieRequestTarget request_target = 13; // MLOnesieRequestTarget - repeated BufferedRange buffered_ranges = 14; -} \ No newline at end of file + optional int32 max_vp9_height = 5; + optional int32 client_display_height = 6; + optional StreamerContext streamer_context = 10; + optional .misc.OnesieRequestTarget request_target = 13; // MLOnesieRequestTarget + repeated BufferedRange buffered_ranges = 14; +} diff --git a/protos/video_streaming/playback_cookie.proto b/protos/video_streaming/playback_cookie.proto index 6556af1..eb8ca09 100644 --- a/protos/video_streaming/playback_cookie.proto +++ b/protos/video_streaming/playback_cookie.proto @@ -8,4 +8,4 @@ message PlaybackCookie { optional int32 field2 = 2; optional .misc.FormatId video_fmt = 7; optional .misc.FormatId audio_fmt = 8; -} \ No newline at end of file +} diff --git a/protos/video_streaming/playback_start_policy.proto b/protos/video_streaming/playback_start_policy.proto index d2bf955..2b43367 100644 --- a/protos/video_streaming/playback_start_policy.proto +++ b/protos/video_streaming/playback_start_policy.proto @@ -9,4 +9,4 @@ message PlaybackStartPolicy { optional ReadaheadPolicy start_min_readahead_policy = 1; optional ReadaheadPolicy resume_min_readahead_policy = 2; -} \ No newline at end of file +} diff --git a/protos/video_streaming/request_cancellation_policy.proto b/protos/video_streaming/request_cancellation_policy.proto index d71f0e9..110c259 100644 --- a/protos/video_streaming/request_cancellation_policy.proto +++ b/protos/video_streaming/request_cancellation_policy.proto @@ -11,4 +11,4 @@ message RequestCancellationPolicy { optional int32 N0 = 1; repeated Item items = 2; optional int32 jq = 3; -} \ No newline at end of file +} diff --git a/protos/video_streaming/sabr_error.proto b/protos/video_streaming/sabr_error.proto index 55d61f0..f05311b 100644 --- a/protos/video_streaming/sabr_error.proto +++ b/protos/video_streaming/sabr_error.proto @@ -4,4 +4,4 @@ package video_streaming; message SabrError { optional string type = 1; optional int32 code = 2; -} \ No newline at end of file +} diff --git a/protos/video_streaming/sabr_redirect.proto b/protos/video_streaming/sabr_redirect.proto index 65f5f06..e660ad3 100644 --- a/protos/video_streaming/sabr_redirect.proto +++ b/protos/video_streaming/sabr_redirect.proto @@ -3,4 +3,4 @@ package video_streaming; message SabrRedirect { optional string url = 1; -} \ No newline at end of file +} diff --git a/protos/video_streaming/sabr_seek.proto b/protos/video_streaming/sabr_seek.proto index 7481121..0b7e233 100644 --- a/protos/video_streaming/sabr_seek.proto +++ b/protos/video_streaming/sabr_seek.proto @@ -7,4 +7,4 @@ message SabrSeek { optional int64 seek_media_time = 1; optional int32 seek_media_timescale = 2; optional .misc.SeekSource seek_source = 3; -} \ No newline at end of file +} diff --git a/protos/video_streaming/stream_protection_status.proto b/protos/video_streaming/stream_protection_status.proto index 3077b3e..2f2cba4 100644 --- a/protos/video_streaming/stream_protection_status.proto +++ b/protos/video_streaming/stream_protection_status.proto @@ -4,4 +4,4 @@ package video_streaming; message StreamProtectionStatus { optional int32 status = 1; optional int32 field2 = 2; -} \ No newline at end of file +} diff --git a/protos/video_streaming/streamer_context.proto b/protos/video_streaming/streamer_context.proto index c717df6..d83c39f 100644 --- a/protos/video_streaming/streamer_context.proto +++ b/protos/video_streaming/streamer_context.proto @@ -24,7 +24,7 @@ message StreamerContext { optional float screen_density_float = 65; optional int64 utc_offset_minutes = 67; optional string time_zone = 80; - optional string chipset = 92; // e.g. "qcom;taro" + optional string chipset = 92; // e.g. "qcom;taro" optional GLDeviceInfo gl_device_info = 102; } @@ -63,4 +63,4 @@ message StreamerContext { repeated int32 field6 = 6; optional string field7 = 7; optional Gqa field8 = 8; -} \ No newline at end of file +} diff --git a/protos/video_streaming/time_range.proto b/protos/video_streaming/time_range.proto index 734fa09..e85d2f3 100644 --- a/protos/video_streaming/time_range.proto +++ b/protos/video_streaming/time_range.proto @@ -5,4 +5,4 @@ message TimeRange { optional int64 start = 1; optional int64 duration = 2; optional int32 timescale = 3; -} \ No newline at end of file +} diff --git a/protos/video_streaming/video_playback_abr_request.proto b/protos/video_streaming/video_playback_abr_request.proto index cf27004..71b10eb 100644 --- a/protos/video_streaming/video_playback_abr_request.proto +++ b/protos/video_streaming/video_playback_abr_request.proto @@ -2,10 +2,10 @@ syntax = "proto2"; package video_streaming; import "misc/common.proto"; +import "video_streaming/buffered_range.proto"; import "video_streaming/client_abr_state.proto"; import "video_streaming/streamer_context.proto"; -import "video_streaming/buffered_range.proto"; - + message VideoPlaybackAbrRequest { optional ClientAbrState client_abr_state = 1; repeated .misc.FormatId selected_format_ids = 2; @@ -15,7 +15,7 @@ message VideoPlaybackAbrRequest { optional Lo lo = 6; repeated .misc.FormatId selected_audio_format_ids = 16; repeated .misc.FormatId selected_video_format_ids = 17; - optional StreamerContext streamer_context = 19; + optional StreamerContext streamer_context = 19; optional OQa field21 = 21; optional int32 field22 = 22; optional int32 field23 = 23; @@ -48,4 +48,4 @@ message Pqa { repeated .misc.FormatId formats = 1; repeated BufferedRange ud = 2; optional string clip_id = 3; -} \ No newline at end of file +}