[multisrc/pizzareader] Fix: Handle null status from API (#9144)
update PizzaReader to handle comic status correctly
This commit is contained in:
parent
0cec461ff8
commit
82330730a2
@ -2,4 +2,4 @@ plugins {
|
|||||||
id("lib-multisrc")
|
id("lib-multisrc")
|
||||||
}
|
}
|
||||||
|
|
||||||
baseVersionCode = 3
|
baseVersionCode = 4
|
||||||
|
@ -95,7 +95,7 @@ abstract class PizzaReader(
|
|||||||
artist = comic.artist
|
artist = comic.artist
|
||||||
description = comic.description
|
description = comic.description
|
||||||
genre = comic.genres.joinToString(", ") { it.name }
|
genre = comic.genres.joinToString(", ") { it.name }
|
||||||
status = comic.status.toStatus()
|
status = comic.status?.toStatus() ?: SManga.UNKNOWN
|
||||||
thumbnail_url = comic.thumbnail
|
thumbnail_url = comic.thumbnail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ data class PizzaComicDto(
|
|||||||
val description: String = "",
|
val description: String = "",
|
||||||
val genres: List<PizzaGenreDto> = emptyList(),
|
val genres: List<PizzaGenreDto> = emptyList(),
|
||||||
@SerialName("last_chapter") val lastChapter: PizzaChapterDto? = null,
|
@SerialName("last_chapter") val lastChapter: PizzaChapterDto? = null,
|
||||||
val status: String = "",
|
val status: String? = null,
|
||||||
val title: String = "",
|
val title: String = "",
|
||||||
val thumbnail: String = "",
|
val thumbnail: String = "",
|
||||||
val url: String = "",
|
val url: String = "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user