Improve getting staff name with Anilist
This commit is contained in:
parent
98f93bfbad
commit
e398d9b156
1 changed files with 2 additions and 2 deletions
|
|
@ -374,12 +374,12 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) {
|
||||||
description = media.description?.htmlDecode()?.ifEmpty { null },
|
description = media.description?.htmlDecode()?.ifEmpty { null },
|
||||||
authors = media.staff.edges
|
authors = media.staff.edges
|
||||||
.filter { "Story" in it.role }
|
.filter { "Story" in it.role }
|
||||||
.mapNotNull { it.node.name.userPreferred }
|
.mapNotNull { it.node.name() }
|
||||||
.joinToString(", ")
|
.joinToString(", ")
|
||||||
.ifEmpty { null },
|
.ifEmpty { null },
|
||||||
artists = media.staff.edges
|
artists = media.staff.edges
|
||||||
.filter { "Art" in it.role }
|
.filter { "Art" in it.role }
|
||||||
.mapNotNull { it.node.name.userPreferred }
|
.mapNotNull { it.node.name() }
|
||||||
.joinToString(", ")
|
.joinToString(", ")
|
||||||
.ifEmpty { null },
|
.ifEmpty { null },
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue