Skip to content

Commit 15c712b

Browse files
committed
修复无法加载用户空间投稿视频列表
1 parent 2dba26c commit 15c712b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bili-api/src/main/kotlin/dev/aaa1115910/biliapi/entity/user/Space.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ data class SpaceVideo(
6161
fun fromSpaceVideoItem(spaceVideoItem: dev.aaa1115910.biliapi.http.entity.user.AppSpaceVideoData.SpaceVideoItem) =
6262
SpaceVideo(
6363
aid = spaceVideoItem.param.toLong(),
64-
bvid = spaceVideoItem.bvid,
64+
bvid = spaceVideoItem.bvid ?: "",
6565
title = spaceVideoItem.title,
6666
cover = spaceVideoItem.cover,
67-
author = spaceVideoItem.author,
67+
author = spaceVideoItem.author ?: "",
6868
duration = spaceVideoItem.duration,
6969
play = spaceVideoItem.play,
7070
danmaku = spaceVideoItem.danmaku,

bili-api/src/main/kotlin/dev/aaa1115910/biliapi/http/entity/user/SpaceVideoData.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ data class WebSpaceVideoData(
133133
@SerialName("ep_count")
134134
val epCount: Int,
135135
@SerialName("first_aid")
136-
val firstAid: Long,
136+
val firstAid: Long? = null,
137137
val ptime: Int,
138138
@SerialName("ep_num")
139139
val epNum: Int
@@ -217,14 +217,14 @@ data class AppSpaceVideoData(
217217
val ctime: Int,
218218
@SerialName("ugc_pay")
219219
val ugcPay: Int,
220-
val author: String,
220+
val author: String? = null,
221221
val state: Boolean,
222-
val bvid: String,
222+
val bvid: String? = null,
223223
val videos: Int,
224224
@SerialName("three_point")
225225
val threePoint: List<ThreePointItem> = emptyList(),
226226
@SerialName("first_cid")
227-
val firstcid: Long,
227+
val firstcid: Long? = null,
228228
@SerialName("cursor_attr")
229229
val cursorAttr: CursorAttr,
230230
@SerialName("icon_type")

0 commit comments

Comments
 (0)