diff --git a/build.gradle b/build.gradle index f5883e5f..02592d60 100644 --- a/build.gradle +++ b/build.gradle @@ -58,7 +58,7 @@ dependencies { implementation 'com.squareup.okio:okio:3.9.0' api 'org.jsoup:jsoup:1.18.1' implementation 'org.json:json:20240303' - implementation 'androidx.collection:collection:1.4.1' + implementation 'androidx.collection:collection:1.4.2' ksp project(':kotatsu-parsers-ksp') diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/ExHentaiParser.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/ExHentaiParser.kt index 28e8956f..26ef8028 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/ExHentaiParser.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/ExHentaiParser.kt @@ -279,8 +279,8 @@ internal class ExHentaiParser( val doc = webClient.httpGet("https://${domain}").parseHtml() val root = doc.body().requireElementById("searchbox").selectFirstOrThrow("table") - root.select("div.cs").mapNotNullToSet { div -> - val id = div.id().substringAfterLast('_').toIntOrNull() ?: return@mapNotNullToSet null + root.select("div.cs").forEach { div -> + val id = div.id().substringAfterLast('_').toIntOrNull() ?: return@forEach val name = div.text().toTitleCase(Locale.ENGLISH) tagMap[name] = MangaTag( title = "Kind: $name",