mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 11:42:47 +01:00
Lxhentai: Update domain (#6044)
* Update domain and update mangaDetailsParse (title & genre & author) * update bump version
This commit is contained in:
parent
9f64625684
commit
c440717df2
@ -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>
|
||||
|
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'LXHentai'
|
||||
extClass = '.LxHentai'
|
||||
extVersionCode = 10
|
||||
extVersionCode = 11
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user