parent
19839e5188
commit
94efe1f97d
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'WP MangaStream (multiple sources)'
|
extName = 'WP MangaStream (multiple sources)'
|
||||||
pkgNameSuffix = 'all.wpmangastream'
|
pkgNameSuffix = 'all.wpmangastream'
|
||||||
extClass = '.WPMangaStreamFactory'
|
extClass = '.WPMangaStreamFactory'
|
||||||
extVersionCode = 33
|
extVersionCode = 34
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -246,9 +246,11 @@ abstract class WPMangaStream(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open val pageSelector = "div#readerarea img"
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
var pages = mutableListOf<Page>()
|
var pages = mutableListOf<Page>()
|
||||||
document.select("div#readerarea img")
|
document.select(pageSelector)
|
||||||
.filterNot { it.attr("src").isNullOrEmpty() }
|
.filterNot { it.attr("src").isNullOrEmpty() }
|
||||||
.mapIndexed { i, img -> pages.add(Page(i, "", img.attr("abs:src"))) }
|
.mapIndexed { i, img -> pages.add(Page(i, "", img.attr("abs:src"))) }
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,9 @@ class SheaManga : WPMangaStream(
|
||||||
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.forLanguageTag("id"))
|
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.forLanguageTag("id"))
|
||||||
)
|
)
|
||||||
|
|
||||||
class AsuraScans : WPMangaStream("AsuraScans", "https://asurascans.com", "en")
|
class AsuraScans : WPMangaStream("AsuraScans", "https://asurascans.com", "en") {
|
||||||
|
override val pageSelector = "div#readerarea img[lazy]"
|
||||||
|
}
|
||||||
|
|
||||||
class SekteKomik : WPMangaStream("Sekte Komik (WP Manga Stream)", "https://sektekomik.com", "id")
|
class SekteKomik : WPMangaStream("Sekte Komik (WP Manga Stream)", "https://sektekomik.com", "id")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue