mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
parent
b233e0e4a8
commit
99d6b6b90c
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Dragon Ball Multiverse'
|
||||
extClass = '.DbMFactory'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 6
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -39,9 +39,19 @@ abstract class DbMultiverse(override val lang: String, private val internalLang:
|
||||
}
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select("div#h_read img").mapIndexed { index, element ->
|
||||
Page(index, "", element.attr("abs:src"))
|
||||
}
|
||||
return document.select("#balloonsimg")
|
||||
.let { e ->
|
||||
listOf(
|
||||
if (e.hasAttr("src")) {
|
||||
Page(1, "", e.attr("abs:src"))
|
||||
} else {
|
||||
e.attr("style")
|
||||
.substringAfter("(")
|
||||
.substringBefore(")")
|
||||
.let { Page(1, "", baseUrl + it) }
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override fun fetchPopularManga(page: Int): Observable<MangasPage> {
|
||||
|
Loading…
Reference in New Issue
Block a user