Fix AniList ALSearchItem.status nullibility (#1297)

This commit is contained in:
Secozzi 2024-10-06 00:09:49 +02:00 committed by GitHub
parent f7fbc93833
commit 76e0aba70c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 averageScore: Int?,
@ -20,7 +20,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,