Fix build

This commit is contained in:
Jobobby04
2026-02-27 11:51:08 -05:00
parent 85cf54ccc8
commit b0d6e16ca3
2 changed files with 3 additions and 17 deletions
@@ -196,12 +196,12 @@ class MyAnimeListApi(
description = it.synopsis,
authors = it.authors
.filter { it.role == "Story" || it.role == "Story & Art" }
.map { "${it.node.firstName} ${it.node.lastName}".trim() }
.mapNotNull { it.node.getFullName() }
.joinToString(separator = ", ")
.ifEmpty { null },
artists = it.authors
.filter { it.role == "Art" || it.role == "Story & Art" }
.map { "${it.node.firstName} ${it.node.lastName}".trim() }
.mapNotNull { it.node.getFullName() }
.joinToString(separator = ", ")
.ifEmpty { null },
)
@@ -51,19 +51,5 @@ data class MALMangaMetadata(
val synopsis: String?,
@SerialName("main_picture")
val covers: MALMangaCovers,
val authors: List<MALAuthor>,
)
@Serializable
data class MALAuthor(
val node: MALAuthorNode,
val role: String,
)
@Serializable
data class MALAuthorNode(
@SerialName("first_name")
val firstName: String,
@SerialName("last_name")
val lastName: String,
val authors: List<MALAuthorNode>,
)