Update domain Lxhentai and clean description (#5944)

This commit is contained in:
are-are-are 2024-11-08 16:30:30 +07:00 committed by GitHub
parent bc3a1c66b3
commit 42eb776a0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 15 deletions

View File

@ -14,7 +14,7 @@
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="lxmanga.online"
android:host="lxmanga.site"
android:pathPattern="/truyen/..*"
android:scheme="https" />
</intent-filter>

View File

@ -1,7 +1,7 @@
ext {
extName = 'LXHentai'
extClass = '.LxHentai'
extVersionCode = 9
extVersionCode = 10
isNsfw = true
}

View File

@ -30,7 +30,7 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
override val name = "LXHentai"
private val defaultBaseUrl = "https://lxmanga.online"
private val defaultBaseUrl = "https://lxmanga.site"
override val baseUrl by lazy { getPrefBaseUrl() }
@ -129,18 +129,7 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
.joinToString { it.text().trim(',', ' ') }
genre = document.select("div.grow div.mt-2:contains(Thể loại) span a")
.joinToString { it.text().trim(',', ' ') }
description = ""
document.select("div.grow div.mt-2").forEach {
val key = it.select("span.mr-2").text().trim(':', ' ')
if (key in arrayOf("Tác giả", "Thể loại", "Tình trạng", "Lần cuối")) {
return@forEach
}
val value = it.select("span:not(.mr-2)").text()
description += "$key: $value\n"
}
description += "\n"
description += document.select("p:contains(Tóm tắt) ~ p").joinToString("\n") {
description = document.select("p:contains(Tóm tắt) ~ p").joinToString("\n") {
it.run {
select(Evaluator.Tag("br")).prepend("\\n")
this.text().replace("\\n", "\n").replace("\n ", "\n")