Skip to content

Commit

Permalink
fix: PlayInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Dec 11, 2021
1 parent 6922f67 commit a605299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/xyz/cssxsh/weibo/data/PageInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data class PageInfo(
@Serializable
data class PlayInfo(
@SerialName("height")
val height: Int,
val height: Int = 0,
@SerialName("mime")
val mime: String,
@SerialName("bitrate")
Expand All @@ -67,7 +67,7 @@ data class PageInfo(
@SerialName("url")
val url: String = "",
@SerialName("width")
val width: Int
val width: Int = 0
) : Comparable<PlayInfo> {

override fun compareTo(other: PlayInfo): Int = bitrate.compareTo(other.bitrate)
Expand Down

0 comments on commit a605299

Please sign in to comment.