[CBHentai] Small fixes

This commit is contained in:
Draken
2025-02-26 22:16:49 +07:00
committed by GitHub
parent a0168a7d49
commit 5b6c9be6d6

View File

@@ -48,11 +48,11 @@ internal class HentaiCube(context: MangaLoaderContext) :
val elements = doc.select("ul.list-unstyled li a")
return elements.mapToSet { element ->
val href = element.attr("href")
val key = href.substringAfter("/the-loai/").removeSuffix("/")
val key = href.substringAfter("/theloai/").removeSuffix("/")
val title = element.text().replace(Regex("\\(\\d+\\)"), "")
MangaTag(
key = key,
title = title.toTitleCase(sourceLocale),
title = title,
source = source,
)
}.toSet()