MangaSwat : Fix images not loading (#10936)

* Update MangaSwat.kt

* Update WPMangaStreamGenerator.kt
This commit is contained in:
zeredouni 2022-02-28 12:03:13 +00:00 committed by GitHub
parent d02c0142e5
commit 3ba7c3868f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class MangaSwat : WPMangaStream("MangaSwat", "https://swatmanga.co", "ar", Simpl
override fun pageListParse(document: Document): List<Page> {
return document.select(pageSelector)
.filterNot { it.attr("src").isNullOrEmpty() }
.mapIndexed { i, img -> Page(i, "", img.attr("src")) }
.mapIndexed { i, img -> Page(i, "", img.attr("data-src")) }
}
override fun getFilterList() = FilterList(

View File

@ -34,7 +34,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1),
SingleLang("Komik Cast", "https://komikcast.com", "id", overrideVersionCode = 9),
SingleLang("West Manga", "https://westmanga.info", "id", overrideVersionCode = 1),
SingleLang("MangaSwat", "https://swatmanga.co", "ar", overrideVersionCode = 4),
SingleLang("MangaSwat", "https://swatmanga.co", "ar", overrideVersionCode = 5),
SingleLang("Manga Raw.org", "https://mangaraw.org", "ja", className = "MangaRawOrg", overrideVersionCode = 1),
SingleLang("Manga Pro Z", "https://mangaprotm.com", "ar", overrideVersionCode = 1),
SingleLang("Mihentai", "https://mihentai.com", "en", isNsfw = true, overrideVersionCode = 1),