返回提交历史
Modified
grpc_api/bilibili/app/archive/middleware/v1/preload.proto
+1
-1
Modified
grpc_api/bilibili/metadata/device/device.proto
+3
-3
Modified
grpc_api/bilibili/metadata/metadata.proto
+1
-1
Modified
grpc_api/bilibili/metadata/restriction/restriction.proto
+1
-1
Modified
grpc_api/bilibili/pagination/pagination.proto
+4
-4
Modified
grpc_api/bilibili/pgc/gateway/player/v2/playurl.proto
+38
-37
Modified
grpc_api/bilibili/polymer/app/search/v1/search.proto
+11
-11
XFEstudio/bilibili-API-collect
补充注释 (#624)
387d5d0
代码差异
7 个文件
+59
-58
@@ -13,6 +13,6 @@ message PlayerArgs {
13
13
// 返回url是否强制使用域名
14
14
// 0:不强制使用域名 1:http域名 2:https域名
15
15
int64 force_host = 4;
16
//
16
// 音量均衡
17
17
int64 voice_balance = 5;
18
18
}
@@ -6,8 +6,8 @@ package bilibili.metadata.device;
6
6
// gRPC头部:x-bili-device-bin
7
7
message Device {
8
8
// 产品id
9
// 粉 白 蓝 直播姬 HD 海外 OTT 漫画 TV野版 小视频 网易漫画 网易漫画 网易漫画HD 国际版
10
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14
9
// 粉 白 蓝 直播姬 HD 海外 OTT 漫画 TV野版 小视频 网易漫画 网易漫画 网易漫画HD 国际版 东南亚版
10
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 30
11
11
int32 app_id = 1;
12
12
// 构建id
13
13
int32 build = 2;
@@ -36,6 +36,6 @@ message Device {
36
36
string version_name = 13;
37
37
// 设备指纹, 不区分本地或远程设备指纹,作为推送目标的索引
38
38
string fp = 14;
39
//
39
// 首次启动时的毫秒时间戳
40
40
int64 fts = 15;
41
41
}
@@ -13,7 +13,7 @@ message Metadata {
13
13
string device = 3;
14
14
// 构建id
15
15
int32 build = 4;
16
// 渠道
16
// APP分发渠道
17
17
string channel = 5;
18
18
// 设备buvid
19
19
string buvid = 6;
@@ -19,6 +19,6 @@ message Restriction {
19
19
ModeType mode = 3;
20
20
// app 审核review状态
21
21
bool review = 4;
22
//
22
// 客户端是否选择关闭个性化推荐
23
23
bool disable_rcmd = 5;
24
24
}
@@ -2,7 +2,7 @@ syntax = "proto3";
2
2
3
3
package bilibili.pagination;
4
4
5
//
5
// 分页信息
6
6
message FeedPagination {
7
7
//
8
8
int32 page_size = 1;
@@ -12,7 +12,7 @@ message FeedPagination {
12
12
bool is_refresh = 3;
13
13
}
14
14
15
//
15
// 分页信息
16
16
message FeedPaginationReply {
17
17
//
18
18
string next_offset = 1;
@@ -22,7 +22,7 @@ message FeedPaginationReply {
22
22
string last_read_offset = 3;
23
23
}
24
24
25
//
25
// 分页信息
26
26
message Pagination {
27
27
//
28
28
int32 page_size = 1;
@@ -30,7 +30,7 @@ message Pagination {
30
30
string next = 2;
31
31
}
32
32
33
//
33
// 分页信息
34
34
message PaginationReply {
35
35
//
36
36
string next = 1;
@@ -22,15 +22,15 @@ message BadgeInfo {
22
22
string bg_color_night = 3;
23
23
// 文案色值
24
24
string text_color = 4;
25
//
25
// ? 新版本客户端已弃用此项
26
26
GradientColor bg_gradient_color = 5;
27
27
}
28
28
29
//
29
// Dialog组件: 底部显示
30
30
message BottomDisplay {
31
//
31
// 文案
32
32
TextInfo title = 1;
33
//
33
// 图标
34
34
string icon = 2;
35
35
}
36
36
@@ -68,34 +68,35 @@ message ButtonInfo {
68
68
map<string, string> order_report_params = 15;
69
69
}
70
70
71
//
71
// 投屏限制. code = 0 时为无限制, 否则表示不不允许投屏并提示message
72
72
message CastTips {
73
73
//
74
74
int32 code = 1;
75
//
75
//
76
76
string message = 2;
77
77
}
78
78
79
//
79
// 跳过片头/片尾配置
80
80
message ClipInfo {
81
81
//
82
82
int64 material_no = 1;
83
//
83
// DASH分段始
84
84
int32 start = 2;
85
//
85
// DASH分段终
86
86
int32 end = 3;
87
//
87
// Clip类型
88
88
ClipType clip_type = 4;
89
//
89
// 跳过片头/片尾时的提示语
90
90
string toast_text = 5;
91
//
91
//
92
92
MultiView multi_view = 6;
93
93
}
94
94
95
// 跳过片头/片尾配置: Clip类型
95
96
enum ClipType {
96
97
NT_UNKNOWN = 0; //
97
CLIP_TYPE_OP = 1; //
98
CLIP_TYPE_ED = 2; //
98
CLIP_TYPE_OP = 1; // 跳过OP
99
CLIP_TYPE_ED = 2; // 跳过ED
99
100
CLIP_TYPE_HE = 3; //
100
101
CLIP_TYPE_MULTI_VIEW = 4; //
101
102
}
@@ -176,7 +177,7 @@ message DashItem {
176
177
uint32 codecid = 5;
177
178
// md5
178
179
string md5 = 6;
179
// 大小
180
// 视频大小
180
181
uint64 size = 7;
181
182
// 帧率
182
183
string frame_rate = 8;
@@ -252,13 +253,13 @@ message DialogConfig {
252
253
bool is_force_halfscreen_enable = 4;
253
254
}
254
255
255
//
256
// 当前分辨率信息
256
257
message Dimension {
257
//
258
// 宽
258
259
int32 width = 1;
259
//
260
// 长
260
261
int32 height = 2;
261
//
262
// 旋转角度
262
263
int32 rotate = 3;
263
264
}
264
265
@@ -276,7 +277,7 @@ message DolbyItem {
276
277
DashItem audio = 2;
277
278
}
278
279
279
//
280
// DRM技术类型
280
281
enum DrmTechType {
281
282
NON = 0; //
282
283
FAIR_PLAY = 1; //
@@ -296,7 +297,7 @@ message Event {
296
297
Shake shake = 1;
297
298
}
298
299
299
//
300
// ? 放映室提示语
300
301
message FreyaConfig {
301
302
//
302
303
string desc = 1;
@@ -312,7 +313,7 @@ message FreyaConfig {
312
313
int32 full_screen_number = 6;
313
314
}
314
315
315
//
316
// 渐变色信息
316
317
message GradientColor {
317
318
//
318
319
string start_color = 1;
@@ -320,7 +321,7 @@ message GradientColor {
320
321
string end_color = 2;
321
322
}
322
323
323
//
324
// 高画质试看信息
324
325
message HighDefinitionTrialInfo {
325
326
//
326
327
bool trial_able = 1;
@@ -376,7 +377,7 @@ message MultiView {
376
377
int64 avid = 4;
377
378
}
378
379
379
//
380
// 大会员广告: 支付提示信息
380
381
message PayTip {
381
382
//
382
383
string title = 1;
@@ -482,19 +483,19 @@ message PlayViewBusinessInfo {
482
483
string playback_speed_color = 4;
483
484
//
484
485
ContinuePlayInfo continue_play_info = 5;
485
//
486
// 跳过片头/片尾配置
486
487
repeated ClipInfo clip_info = 6;
487
488
//
488
489
InlineType inline_type = 7;
489
490
//
490
491
int32 ep_whole_duration = 8;
491
//
492
// 当前分辨率信息
492
493
Dimension dimension = 9;
493
494
//
494
495
map<int32, QualityExtInfo> quality_ext_map = 10;
495
496
//
496
497
map<string, int32> exp_map = 11;
497
//
498
// DRM技术类型
498
499
DrmTechType drm_tech_type = 12;
499
500
}
500
501
@@ -578,21 +579,21 @@ message PopWin {
578
579
string pop_type = 9;
579
580
}
580
581
581
//
582
// 广告组件: 竖屏时视频下部提示栏
582
583
message PromptBar {
583
//
584
// 主标题, 如: "本片含大会员专享内容"
584
585
TextInfo title = 1;
585
//
586
// 副标题, 如: "成为大会员可免费看全部剧集"
586
587
TextInfo sub_title = 2;
587
//
588
// 副标题前面的icon
588
589
string sub_title_icon = 3;
589
//
590
// 背景图
590
591
string bg_image = 4;
591
//
592
// 背景渐变色
592
593
GradientColor bg_gradient_color = 5;
593
//
594
// 按钮
594
595
repeated ButtonInfo button = 6;
595
//
596
// 埋点上报信息
596
597
Report report = 7;
597
598
//
598
599
string full_screen_ip_icon = 8;
@@ -600,9 +601,9 @@ message PromptBar {
600
601
GradientColor full_screen_bg_gradient_color = 9;
601
602
}
602
603
603
//
604
// 云控拓展视频画质信息
604
605
message QualityExtInfo {
605
//
606
// 是否支持试看
606
607
bool trial_support = 1;
607
608
}
608
609
@@ -7,9 +7,9 @@ import "bilibili/pagination/pagination.proto";
7
7
8
8
//
9
9
service Search {
10
//
10
// 搜索所有类型结果
11
11
rpc SearchAll(SearchAllRequest) returns (SearchAllResponse);
12
//
12
// 搜索指定类型结果
13
13
rpc SearchByType(SearchByTypeRequest) returns (SearchByTypeResponse);
14
14
//
15
15
rpc SearchComic(SearchComicRequest) returns (SearchComicResponse);
@@ -1098,9 +1098,9 @@ message SearchBannerCard {
1098
1098
1099
1099
//
1100
1100
message SearchByTypeRequest {
1101
//
1101
// 搜索目标类型, 番剧为7
1102
1102
int32 type = 1;
1103
//
1103
// 关键词
1104
1104
string keyword = 2;
1105
1105
//
1106
1106
int32 category_sort = 3;
@@ -1118,21 +1118,21 @@ message SearchByTypeRequest {
1118
1118
1119
1119
//
1120
1120
message SearchByTypeResponse {
1121
//
1121
// 追踪id
1122
1122
string trackid = 1;
1123
//
1123
// 当前页码
1124
1124
int32 pages = 2;
1125
1125
//
1126
1126
string exp_str = 3;
1127
//
1127
// 搜索关键词
1128
1128
string keyword = 4;
1129
//
1129
// 是否为推荐结果
1130
1130
int32 result_is_recommend = 5;
1131
//
1131
// 搜索结果条目
1132
1132
repeated Item items = 6;
1133
//
1133
// 分页信息
1134
1134
bilibili.pagination.PaginationReply pagination = 7;
1135
//
1135
//
1136
1136
map<string, string> annotation = 8;
1137
1137
}
1138
1138