Lxhentai: Update domain (#6044)

* Update domain and update mangaDetailsParse (title & genre & author)

* update bump version
This commit is contained in:
are-are-are 2024-11-14 13:36:23 +07:00 committed by GitHub
parent 9f64625684
commit c440717df2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

@ -30,7 +30,7 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
override val name = "LXHentai"
private val defaultBaseUrl = "https://lxmanga.site"
private val defaultBaseUrl = "https://lxmanga.store"
override val baseUrl by lazy { getPrefBaseUrl() }
@ -124,10 +124,10 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
override fun searchMangaNextPageSelector() = "li:contains(Cuối)"
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
title = document.select("span.text-lg.ml-1.font-semibold").first()!!.text()
author = document.select("div.grow div.mt-2:contains(Tác giả) span a")
.joinToString { it.text().trim(',', ' ') }
genre = document.select("div.grow div.mt-2:contains(Thể loại) span a")
title = document.select("div.mb-4 span").first()!!.text()
author = document.selectFirst("div.grow div.mt-2 > span:contains(Tác giả:) + span a")?.text()
genre = document.selectFirst("div.grow div.mt-2 > span:contains(Thể loại:) + span")!!
.select("a")
.joinToString { it.text().trim(',', ' ') }
description = document.select("p:contains(Tóm tắt) ~ p").joinToString("\n") {
it.run {