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 @@ -183,8 +183,8 @@ data class VideoDetail(
183183 fun fromPlayerIcon (playerIcon : dev.aaa1115910.biliapi.http.entity.season.AppSeasonData .PlayerIcon ? ) =
184184 playerIcon?.let {
185185 PlayerIcon (
186- idle = playerIcon.url2,
187- moving = playerIcon.url1
186+ idle = playerIcon.url2 ? : return @let null ,
187+ moving = playerIcon.url1 ? : return @let null
188188 )
189189 }
190190 }
Original file line number Diff line number Diff line change @@ -325,12 +325,12 @@ data class AppSeasonData(
325325 val ctime : Int ,
326326 @SerialName(" drag_data" )
327327 val dragData : JsonElement ? = null ,
328- val hash1 : String ,
329- val hash2 : String ,
328+ val hash1 : String? = null ,
329+ val hash2 : String? = null ,
330330 @SerialName(" no_drag_data" )
331331 val noDragData : JsonElement ? = null ,
332- val url1 : String ,
333- val url2 : String
332+ val url1 : String? = null ,
333+ val url2 : String? = null
334334 )
335335
336336 @Serializable
You can’t perform that action at this time.
0 commit comments