Fix AniList ALSearchItem.status nullibility

This commit is contained in:
Secozzi 2024-10-30 18:56:44 +01:00
parent ffd4ba44fa
commit 69a8b512a5
No known key found for this signature in database
GPG key ID: DD93E0B3A962AA86

View file

@ -9,7 +9,7 @@ data class ALSearchItem(
val coverImage: ItemCover,
val description: String?,
val format: String,
val status: String = "",
val status: String?,
val startDate: ALFuzzyDate,
val chapters: Long?,
val episodes: Long?,
@ -21,7 +21,7 @@ data class ALSearchItem(
imageUrl = coverImage.large,
description = description,
format = format.replace("_", "-"),
publishingStatus = status,
publishingStatus = status ?: "",
startDateFuzzy = startDate.toEpochMilli(),
totalChapters = chapters ?: 0,
averageScore = averageScore ?: -1,
@ -33,7 +33,7 @@ data class ALSearchItem(
imageUrl = coverImage.large,
description = description,
format = format.replace("_", "-"),
publishingStatus = status,
publishingStatus = status ?: "",
startDateFuzzy = startDate.toEpochMilli(),
totalEpisodes = episodes ?: 0,
averageScore = averageScore ?: -1,