[multisrc/pizzareader] Fix: Handle null status from API (#9144)

update PizzaReader to handle comic status correctly
This commit is contained in:
Aurel 2025-06-08 22:13:15 -04:00 committed by Draff
parent 0cec461ff8
commit 82330730a2
Signed by: Draff
GPG Key ID: E8A89F3211677653
3 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 3
baseVersionCode = 4

View File

@ -95,7 +95,7 @@ abstract class PizzaReader(
artist = comic.artist
description = comic.description
genre = comic.genres.joinToString(", ") { it.name }
status = comic.status.toStatus()
status = comic.status?.toStatus() ?: SManga.UNKNOWN
thumbnail_url = comic.thumbnail
}

View File

@ -27,7 +27,7 @@ data class PizzaComicDto(
val description: String = "",
val genres: List<PizzaGenreDto> = emptyList(),
@SerialName("last_chapter") val lastChapter: PizzaChapterDto? = null,
val status: String = "",
val status: String? = null,
val title: String = "",
val thumbnail: String = "",
val url: String = "",