VlogTruyen: Update domain & fix pageListParse (#8432)

* VlogTruyen Update domain & fix pageListParse

* Revert

* Use selectFrist safe call
This commit is contained in:
are-are-are 2025-04-12 13:40:10 +07:00 committed by Draff
parent 3af754cb20
commit 54055cb43c
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'VlogTruyen'
extClass = '.VlogTruyen'
extVersionCode = 8
extVersionCode = 9
isNsfw = true
}

View File

@ -41,7 +41,7 @@ class VlogTruyen : ParsedHttpSource(), ConfigurableSource {
override val id: Long = 6425642624422299254
private val defaultBaseUrl = "https://vlogtruyen45.com"
private val defaultBaseUrl = "https://vlogtruyen48.com"
override val baseUrl by lazy { getPrefBaseUrl() }
@ -159,7 +159,7 @@ class VlogTruyen : ParsedHttpSource(), ConfigurableSource {
override fun pageListParse(document: Document): List<Page> {
val loginRequired = document.selectFirst(".area-show-content span")
if (loginRequired!!.text() == "Xin lỗi, bạn cần đăng nhập để đọc được chapter này!") {
if (loginRequired?.text() == "Xin lỗi, bạn cần đăng nhập để đọc được chapter này!") {
throw Exception("${loginRequired.text()} \n Hãy đăng nhập trong WebView.")
}
return document.select("img.image-commic").mapIndexed { i, e ->