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(
183
183
fun fromPlayerIcon (playerIcon : dev.aaa1115910.biliapi.http.entity.season.AppSeasonData .PlayerIcon ? ) =
184
184
playerIcon?.let {
185
185
PlayerIcon (
186
- idle = playerIcon.url2,
187
- moving = playerIcon.url1
186
+ idle = playerIcon.url2 ? : return @let ,
187
+ moving = playerIcon.url1 ? : return @let
188
188
)
189
189
}
190
190
}
Original file line number Diff line number Diff line change @@ -325,12 +325,12 @@ data class AppSeasonData(
325
325
val ctime : Int ,
326
326
@SerialName(" drag_data" )
327
327
val dragData : JsonElement ? = null ,
328
- val hash1 : String ,
329
- val hash2 : String ,
328
+ val hash1 : String? = null ,
329
+ val hash2 : String? = null ,
330
330
@SerialName(" no_drag_data" )
331
331
val noDragData : JsonElement ? = null ,
332
- val url1 : String ,
333
- val url2 : String
332
+ val url1 : String? = null ,
333
+ val url2 : String? = null
334
334
)
335
335
336
336
@Serializable
You can’t perform that action at this time.
0 commit comments