From 76e0aba70cc3a744e6ef4950a89ff6a498a54909 Mon Sep 17 00:00:00 2001 From: Secozzi <49240133+Secozzi@users.noreply.github.com> Date: Sun, 6 Oct 2024 00:09:49 +0200 Subject: [PATCH] Fix AniList `ALSearchItem.status` nullibility (#1297) --- .../kanade/tachiyomi/data/track/anilist/dto/ALSearchItem.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/dto/ALSearchItem.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/dto/ALSearchItem.kt index 49c8df938..98db89e04 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/dto/ALSearchItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/dto/ALSearchItem.kt @@ -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,