Fix AniList ALSearchItem.status
nullibility (#1297)
(cherry picked from commit 76e0aba70cc3a744e6ef4950a89ff6a498a54909)
This commit is contained in:
parent
a6667bc91d
commit
6ad9eb098f
@ -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…
x
Reference in New Issue
Block a user