Skip to content

Commit

Permalink
fix(anilist): Fix ALSearchItem.format nullability (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
Secozzi authored Jan 31, 2025
1 parent 3297236 commit b24d31e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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?,
Expand All @@ -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,
Expand All @@ -32,7 +32,7 @@ data class ALSearchItem(
title = title.userPreferred,
imageUrl = coverImage.large,
description = description,
format = format.replace("_", "-"),
format = format?.replace("_", "-") ?: "",
publishingStatus = status ?: "",
startDateFuzzy = startDate.toEpochMilli(),
totalEpisodes = episodes ?: 0,
Expand Down

0 comments on commit b24d31e

Please sign in to comment.