fix(tracker-anilist): format property in ALSearchItem nullable (#890)

This commit is contained in:
Cuong-Tran 2025-05-07 22:33:01 +07:00
parent 6562ab0018
commit 8be38ce077
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -8,7 +8,7 @@ data class ALSearchItem(
val title: ALItemTitle,
val coverImage: ItemCover,
val description: String?,
val format: String,
val format: String?,
val status: String?,
val startDate: ALFuzzyDate,
val chapters: Long?,
@ -20,7 +20,7 @@ data class ALSearchItem(
title = title.userPreferred,
imageUrl = coverImage.large,
description = description,
format = format.replace("_", "-"),
format = format?.replace("_", "-") ?: "",
publishingStatus = status ?: "",
startDateFuzzy = startDate.toEpochMilli(),
totalChapters = chapters ?: 0,