Update domain Lxhentai and clean description (#5944)
This commit is contained in:
parent
3205b7d3f7
commit
6aedf4e884
@ -14,7 +14,7 @@
|
|||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
|
||||||
<data
|
<data
|
||||||
android:host="lxmanga.online"
|
android:host="lxmanga.site"
|
||||||
android:pathPattern="/truyen/..*"
|
android:pathPattern="/truyen/..*"
|
||||||
android:scheme="https" />
|
android:scheme="https" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'LXHentai'
|
extName = 'LXHentai'
|
||||||
extClass = '.LxHentai'
|
extClass = '.LxHentai'
|
||||||
extVersionCode = 9
|
extVersionCode = 10
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
|
|||||||
|
|
||||||
override val name = "LXHentai"
|
override val name = "LXHentai"
|
||||||
|
|
||||||
private val defaultBaseUrl = "https://lxmanga.online"
|
private val defaultBaseUrl = "https://lxmanga.site"
|
||||||
|
|
||||||
override val baseUrl by lazy { getPrefBaseUrl() }
|
override val baseUrl by lazy { getPrefBaseUrl() }
|
||||||
|
|
||||||
@ -129,18 +129,7 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
|
|||||||
.joinToString { it.text().trim(',', ' ') }
|
.joinToString { it.text().trim(',', ' ') }
|
||||||
genre = document.select("div.grow div.mt-2:contains(Thể loại) span a")
|
genre = document.select("div.grow div.mt-2:contains(Thể loại) span a")
|
||||||
.joinToString { it.text().trim(',', ' ') }
|
.joinToString { it.text().trim(',', ' ') }
|
||||||
|
description = document.select("p:contains(Tóm tắt) ~ p").joinToString("\n") {
|
||||||
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") {
|
|
||||||
it.run {
|
it.run {
|
||||||
select(Evaluator.Tag("br")).prepend("\\n")
|
select(Evaluator.Tag("br")).prepend("\\n")
|
||||||
this.text().replace("\\n", "\n").replace("\n ", "\n")
|
this.text().replace("\\n", "\n").replace("\n ", "\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user