Lxhentai: Update domain (#6044)
* Update domain and update mangaDetailsParse (title & genre & author) * update bump version
This commit is contained in:
parent
875dbcde3a
commit
dbfe27e7a3
|
@ -14,7 +14,7 @@
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
|
||||||
<data
|
<data
|
||||||
android:host="lxmanga.site"
|
android:host="lxmanga.store"
|
||||||
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 = 10
|
extVersionCode = 11
|
||||||
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.site"
|
private val defaultBaseUrl = "https://lxmanga.store"
|
||||||
|
|
||||||
override val baseUrl by lazy { getPrefBaseUrl() }
|
override val baseUrl by lazy { getPrefBaseUrl() }
|
||||||
|
|
||||||
|
@ -124,10 +124,10 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
|
||||||
override fun searchMangaNextPageSelector() = "li:contains(Cuối)"
|
override fun searchMangaNextPageSelector() = "li:contains(Cuối)"
|
||||||
|
|
||||||
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
||||||
title = document.select("span.text-lg.ml-1.font-semibold").first()!!.text()
|
title = document.select("div.mb-4 span").first()!!.text()
|
||||||
author = document.select("div.grow div.mt-2:contains(Tác giả) span a")
|
author = document.selectFirst("div.grow div.mt-2 > span:contains(Tác giả:) + span a")?.text()
|
||||||
.joinToString { it.text().trim(',', ' ') }
|
genre = document.selectFirst("div.grow div.mt-2 > span:contains(Thể loại:) + span")!!
|
||||||
genre = document.select("div.grow div.mt-2:contains(Thể loại) span a")
|
.select("a")
|
||||||
.joinToString { it.text().trim(',', ' ') }
|
.joinToString { it.text().trim(',', ' ') }
|
||||||
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 {
|
it.run {
|
||||||
|
|
Loading…
Reference in New Issue