[CBHentai] Small fixes

master
Draken 1 year ago committed by GitHub
parent a0168a7d49
commit 5b6c9be6d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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()

Loading…
Cancel
Save