From f80b586081fb42626f16154e2bfbd4294f4cf004 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Mon, 4 Nov 2024 10:45:55 +0200 Subject: [PATCH] [Iken] Fixes --- .../org/koitharu/kotatsu/parsers/site/iken/IkenParser.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/iken/IkenParser.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/iken/IkenParser.kt index 2d073a26..74478054 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/iken/IkenParser.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/iken/IkenParser.kt @@ -177,10 +177,10 @@ internal abstract class IkenParser( protected open suspend fun fetchAvailableTags(): Set { val doc = webClient.httpGet("https://$domain/series").parseHtml() return doc.selectLastOrThrow("select").select("option[value]").mapNotNullToSet { - val key = it.attr("value") ?: return@mapNotNullToSet null + val key = it.attrOrNull("value") ?: return@mapNotNullToSet null MangaTag( key = key, - title = it.text() ?: key, + title = (it.text() ?: key).toTitleCase(sourceLocale), source = source, ) }