新增视频基本信息视频所在视频合集信息ugc_season

This commit is contained in:
15996 2024-12-02 11:04:05 +08:00
parent 309c3ec3a0
commit 3ca519ba1c

View File

@ -69,6 +69,7 @@
| no_cache | bool | 是否不允许缓存? | |
| pages | array | 视频分P列表 | |
| subtitle | obj | 视频CC字幕信息 | |
| ugc_season | obj | 视频合集信息 | 不在合集中的视频无此项 |
| staff | array | 合作成员列表 | 非合作视频无此项 |
| is_season_display | bool | | |
| user_garb | obj | 用户装扮信息 | |
@ -213,6 +214,220 @@
| is_fake_account | num | 0 | 作用尚不明确 |
| is_deleted | num | 0 | 作用尚不明确 |
`ugc_season`对象:
| 字段 | 类型 | 内容 | 备注 |
|------------|-------|---------|--------|
| id | num | 视频合集id | |
| title | str | 视频合集标题 | |
| mid | str | 视频合集作者id | |
| intro | str | 视频合集介绍 | |
| sign_state | num | | 作用尚不明确 |
| attribute | num | 稿件属性位 | 详情见[属性数据文档](attribute_data.md#attribute字段值(稿件属性位)) |
| sections | array | 视频合集中分部列表名称可由up主自定义默认为正片 | |
| stat | obj | 视频合集中视频数量 | |
| ep_count | num | 视频合集中视频数量 | |
| season_type | num | 作用尚不明确 | |
| is_pay_season | bool | 是否为付费合集 | |
| enable_vt | num | 作用尚不明确 | |
`ugc_season`中的`sections`数组:
| 字段 | 类型 | 内容 | 备注 |
|------------|-------|---------|--------|
| season_id | num | 视频合集中分部所属视频合集id | |
| section_id | num | 视频合集中分部id | |
| title | str | 视频合集中分部标题 | |
| type | num | | 作用尚不明确 |
| episodes | array | 视频合集中分部的视频列表 | |
`sections`中的`episodes`数组:
| 字段 | 类型 | 内容 | 备注 |
|------------|-------|---------|--------|
| season_id | num | 视频合集中分部中视频所属视频合集id | |
| section_id | num | 视频合集中视频合集中分部中视频所属视频合集分部id | |
| id | num | 视频合集分部中视频id(以下简称视频) | |
| aid | num | 视频aid | |
| cid | num | 视频cid | |
| title | str | 视频标题 | |
| ~~attribute~~(已经弃用) | ~~num~~ | ~~稿件属性位配置~~ | 详情见[属性数据文档](attribute_data.md#attribute字段值(稿件属性位)) |
| arc | obj | 视频详细信息 | 基本同「[获取视频详细信息(web端)](#获取视频详细信息(web端))」中的data对象 |
`ugc_season`中的`stat`对象:
|字段 | 类型 | 内容 | 备注 |
|------------|-------|---------|--------|
| season_id | num | 视频合集id | |
| view | num | 视频合集总浏览量 | |
| danmaku | num | 视频合集总弹幕量 | |
| reply | num | 视频合集总评论量 | |
| fav | num | 视频合集总收藏数 | |
| coin | num | 视频合集总投币数 | |
| share | num | 视频合集总分享数 | |
| now_rank | num | 视频合集当前排名 | |
| his_rank | num | 视频合集历史排名 | |
| like | num | 视频合集总获赞数 | |
| vt | num | 作用尚不明确 | |
| vv | num | 作用尚不明确 | |
`ugc_season`示例
```json
"ugc_season": {
"id": 2974525,
"title": "楚汉传奇",
"cover": "https://archive.biliimg.com/bfs/archive/5a853e8bd10a041360b45a462785d90a58ec469e.png",
"mid": 1557073149,
"intro": "",
"sign_state": 0,
"attribute": 140,
"sections": [
{
"season_id": 2974525,
"id": 3341804,
"title": "正片",
"type": 1,
"episodes": [
{
"season_id": 2974525,
"section_id": 3341804,
"id": 64976947,
"aid": 1804383120,
"cid": 1541093346,
"title": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"attribute": 0,
"arc": {
"aid": 1804383120,
"videos": 0,
"type_id": 0,
"type_name": "",
"copyright": 0,
"pic": "http://i1.hdslb.com/bfs/archive/9d0ebd0a8abd7b005466cb57632ddaa550d24dab.jpg",
"title": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"pubdate": 1715427472,
"ctime": 1715427472,
"desc": "",
"state": 0,
"duration": 612,
"rights": {
"bp": 0,
"elec": 0,
"download": 0,
"movie": 0,
"pay": 0,
"hd5": 0,
"no_reprint": 0,
"autoplay": 0,
"ugc_pay": 0,
"is_cooperation": 0,
"ugc_pay_preview": 0,
"arc_pay": 0,
"free_watch": 0
},
"author": {
"mid": 0,
"name": "",
"face": ""
},
"stat": {
"aid": 1804383120,
"view": 787330,
"danmaku": 1298,
"reply": 774,
"fav": 2589,
"coin": 1947,
"share": 271,
"now_rank": 0,
"his_rank": 0,
"like": 12320,
"dislike": 0,
"evaluation": "",
"argue_msg": "",
"vt": 2630119,
"vv": 787330
},
"dynamic": "",
"dimension": {
"width": 0,
"height": 0,
"rotate": 0
},
"desc_v2": null,
"is_chargeable_season": false,
"is_blooper": false,
"enable_vt": 0,
"vt_display": ""
},
"page": {
"cid": 1541093346,
"page": 1,
"from": "vupload",
"part": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"duration": 612,
"vid": "",
"weblink": "",
"dimension": {
"width": 1920,
"height": 1080,
"rotate": 0
}
},
"bvid": "BV1Tb421b7mi",
"pages": [
{
"cid": 1541093346,
"page": 1,
"from": "vupload",
"part": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"duration": 612,
"vid": "",
"weblink": "",
"dimension": {
"width": 1920,
"height": 1080,
"rotate": 0
}
}
]
},
{
"season_id": 2974525,
"section_id": 3341804,
"id": 65121012,
"aid": 1004394994,
"cid": 1542426326,
"title": "卢绾斗鸡输了,眼看十个手指头保不住,刘邦倾家荡产帮了他",
"attribute": 0,
"arc": {
///
}
}
]
}
],
"stat": {
"season_id": 3617611,
"view": 1826438,
"danmaku": 5193,
"reply": 3036,
"fav": 5970,
"coin": 2303,
"share": 663,
"now_rank": 0,
"his_rank": 0,
"like": 40848,
"vt": 0,
"vv": 0
},
"ep_count": 21,
"season_type": 1,
"is_pay_season": false,
"enable_vt": 0
}
```
`staff`数组:
| 项 | 类型 | 内容 | 备注 |
@ -625,181 +840,6 @@ https://i1.hdslb.com/bfs/archive/ea0dd34bf41e23a68175680a00e3358cd249105f.jpg
基本同「[获取视频详细信息(web端)](#获取视频详细信息(web端))」中的data对象
其中如果当前视频存在于某个视频合集中,则有`ugc_season`对象来描述当前视频所在合集的详细信息
`View`中的`ugc_season`对象:
| 字段 | 类型 | 内容 | 备注 |
|------------|-------|---------|--------|
| id | num | 视频合集id | |
| title | str | 视频合集标题 | |
| mid | str | 视频合集作者id | |
| intro | str | 视频合集介绍 | |
| sign_state | num | | 作用尚不明确 |
| attribute | num | 稿件属性位 | 详情见[属性数据文档](attribute_data.md#attribute字段值(稿件属性位)) |
| sections | array | 视频合集中分部列表,正片、看点等组成,一般视频合集只有正片 | |
`ugc_season`中的`sections`数组:
| 字段 | 类型 | 内容 | 备注 |
|------------|-------|---------|--------|
| season_id | num | 视频合集中分部所属视频合集id | |
| section_id | num | 视频合集中分部id | |
| title | str | 视频合集中分部标题 | |
| type | num | | 作用尚不明确 |
| episodes | array | 视频合集中分部的视频列表 | |
`sections`中的`episodes`数组:
| 字段 | 类型 | 内容 | 备注 |
|------------|-------|---------|--------|
| season_id | num | 视频合集中分部中视频所属视频合集id | |
| section_id | num | 视频合集中视频合集中分部中视频所属视频合集分部id | |
| id | num | 视频合集分部中视频id(以下简称视频) | |
| aid | num | 视频aid | |
| cid | num | 视频cid | |
| title | str | 视频标题 | |
| ~~attribute~~(已经弃用) | ~~num~~ | ~~稿件属性位配置~~ | 详情见[属性数据文档](attribute_data.md#attribute字段值(稿件属性位)) |
| arc | obj | 视频详细信息 | 基本同「[获取视频详细信息(web端)](#获取视频详细信息(web端))」中的data对象 |
`ugc_season`示例
```json
"ugc_season": {
"id": 2974525,
"title": "楚汉传奇",
"cover": "https://archive.biliimg.com/bfs/archive/5a853e8bd10a041360b45a462785d90a58ec469e.png",
"mid": 1557073149,
"intro": "",
"sign_state": 0,
"attribute": 140,
"sections": [
{
"season_id": 2974525,
"id": 3341804,
"title": "正片",
"type": 1,
"episodes": [
{
"season_id": 2974525,
"section_id": 3341804,
"id": 64976947,
"aid": 1804383120,
"cid": 1541093346,
"title": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"attribute": 0,
"arc": {
"aid": 1804383120,
"videos": 0,
"type_id": 0,
"type_name": "",
"copyright": 0,
"pic": "http://i1.hdslb.com/bfs/archive/9d0ebd0a8abd7b005466cb57632ddaa550d24dab.jpg",
"title": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"pubdate": 1715427472,
"ctime": 1715427472,
"desc": "",
"state": 0,
"duration": 612,
"rights": {
"bp": 0,
"elec": 0,
"download": 0,
"movie": 0,
"pay": 0,
"hd5": 0,
"no_reprint": 0,
"autoplay": 0,
"ugc_pay": 0,
"is_cooperation": 0,
"ugc_pay_preview": 0,
"arc_pay": 0,
"free_watch": 0
},
"author": {
"mid": 0,
"name": "",
"face": ""
},
"stat": {
"aid": 1804383120,
"view": 787330,
"danmaku": 1298,
"reply": 774,
"fav": 2589,
"coin": 1947,
"share": 271,
"now_rank": 0,
"his_rank": 0,
"like": 12320,
"dislike": 0,
"evaluation": "",
"argue_msg": "",
"vt": 2630119,
"vv": 787330
},
"dynamic": "",
"dimension": {
"width": 0,
"height": 0,
"rotate": 0
},
"desc_v2": null,
"is_chargeable_season": false,
"is_blooper": false,
"enable_vt": 0,
"vt_display": ""
},
"page": {
"cid": 1541093346,
"page": 1,
"from": "vupload",
"part": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"duration": 612,
"vid": "",
"weblink": "",
"dimension": {
"width": 1920,
"height": 1080,
"rotate": 0
}
},
"bvid": "BV1Tb421b7mi",
"pages": [
{
"cid": 1541093346,
"page": 1,
"from": "vupload",
"part": "项燕的10万大军惨败秦国临死前立下狠誓“楚虽三户亡秦必楚”",
"duration": 612,
"vid": "",
"weblink": "",
"dimension": {
"width": 1920,
"height": 1080,
"rotate": 0
}
}
]
},
{
"season_id": 2974525,
"section_id": 3341804,
"id": 65121012,
"aid": 1004394994,
"cid": 1542426326,
"title": "卢绾斗鸡输了,眼看十个手指头保不住,刘邦倾家荡产帮了他",
"attribute": 0,
"arc": {
///
}
}
]
}
]
}
```
`data`中的`Card`对象:
| 字段 | 类型 | 内容 | 备注 |