File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
bili-api/src/main/kotlin/dev/aaa1115910/biliapi Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments