Fix AniList ALSearchItem.status nullibility (mihonapp/mihon#1297)
(cherry picked from commit 76e0aba70cc3a744e6ef4950a89ff6a498a54909)
This commit is contained in:
parent
b903d21e59
commit
697f59c943
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ data class ALSearchItem(
|
||||||
val coverImage: ItemCover,
|
val coverImage: ItemCover,
|
||||||
val description: String?,
|
val description: String?,
|
||||||
val format: String,
|
val format: String,
|
||||||
val status: String = "",
|
val status: String?,
|
||||||
val startDate: ALFuzzyDate,
|
val startDate: ALFuzzyDate,
|
||||||
val chapters: Long?,
|
val chapters: Long?,
|
||||||
val averageScore: Int?,
|
val averageScore: Int?,
|
||||||
|
|
@ -20,7 +20,7 @@ data class ALSearchItem(
|
||||||
imageUrl = coverImage.large,
|
imageUrl = coverImage.large,
|
||||||
description = description,
|
description = description,
|
||||||
format = format.replace("_", "-"),
|
format = format.replace("_", "-"),
|
||||||
publishingStatus = status,
|
publishingStatus = status ?: "",
|
||||||
startDateFuzzy = startDate.toEpochMilli(),
|
startDateFuzzy = startDate.toEpochMilli(),
|
||||||
totalChapters = chapters ?: 0,
|
totalChapters = chapters ?: 0,
|
||||||
averageScore = averageScore ?: -1,
|
averageScore = averageScore ?: -1,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue