Fix AniList user list item fetch erroring (#3220)

The countryOfOrigin field was not included in the findLibManga query
so it is not returned by AniList. Defaulting to an empty string here
should be fine since neither countryOfOrigin nor format are shown in
the findLibManga consumers (i.e. the tracker sheet of a given library
entry).
This commit is contained in:
MajorTanya
2026-04-10 03:05:25 +02:00
committed by GitHub
parent c4a606112a
commit 8e6af6492b
@@ -9,12 +9,12 @@ data class ALSearchItem(
val coverImage: ItemCover, val coverImage: ItemCover,
val description: String?, val description: String?,
val format: String, val format: String,
val countryOfOrigin: String,
val status: String?, val status: String?,
val startDate: ALFuzzyDate, val startDate: ALFuzzyDate,
val chapters: Long?, val chapters: Long?,
val averageScore: Int?, val averageScore: Int?,
val staff: ALStaff, val staff: ALStaff,
val countryOfOrigin: String = "",
) { ) {
fun toALManga(): ALManga = ALManga( fun toALManga(): ALManga = ALManga(
remoteId = id, remoteId = id,