VlogTruyen: Update domain & fix pageListParse (#8432)
* VlogTruyen Update domain & fix pageListParse * Revert * Use selectFrist safe call
This commit is contained in:
parent
3af754cb20
commit
54055cb43c
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'VlogTruyen'
|
||||
extClass = '.VlogTruyen'
|
||||
extVersionCode = 8
|
||||
extVersionCode = 9
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -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 ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user