VlogTruyen: update domain & fix pageListParse & Use a clear logo (#7620)
* update domain & update pageListParse * Use a clear logo
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'ThichDoc'
|
||||
extClass = '.VlogTruyen'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 6
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 23 KiB |
|
@ -43,7 +43,7 @@ class VlogTruyen : ParsedHttpSource(), ConfigurableSource {
|
|||
|
||||
override val id: Long = 6425642624422299254
|
||||
|
||||
private val defaultBaseUrl = "https://thichdoc.net"
|
||||
private val defaultBaseUrl = "https://thichdoc1.com"
|
||||
|
||||
override val baseUrl by lazy { getPrefBaseUrl() }
|
||||
|
||||
|
@ -161,11 +161,11 @@ class VlogTruyen : ParsedHttpSource(), ConfigurableSource {
|
|||
override fun pageListParse(document: Document): List<Page> {
|
||||
val loginRequired = document.selectFirst(".area-show-content span")
|
||||
|
||||
if (loginRequired != null) {
|
||||
throw Exception("${loginRequired.text()} Hãy đăng nhập trong WebView.")
|
||||
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(".comicDetails img").mapIndexed { i, e ->
|
||||
Page(i, imageUrl = e.attr("abs:src"))
|
||||
return document.select("img.image-commic").mapIndexed { i, e ->
|
||||
Page(i, imageUrl = e.absUrl("src"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|