Remove Asura Ads (#4869)

Remove Asura Ads
This commit is contained in:
AbdullahM0hamed 2020-11-13 20:54:05 +00:00 committed by GitHub
parent 19839e5188
commit 94efe1f97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -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'
} }

View File

@ -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"))) }

View File

@ -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")