MangaWorld: Domain change (#14759)

* MangaWorld: changed url

Minor change to MangaWorld theme

* Incremented theme versionCode insted of extension versionCode
This commit is contained in:
Davide 2023-01-02 13:58:42 +01:00 committed by GitHub
parent c7d9aa2754
commit ed40ed5d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -188,13 +188,10 @@ abstract class MangaWorld(
}
override fun pageListParse(document: Document): List<Page> {
val pages = mutableListOf<Page>()
document.select("div#page img.page-image").forEachIndexed { i, it ->
return document.select("div#page img.page-image").mapIndexed { index, it ->
val url = it.attr("src")
if (url.isNotEmpty())
pages.add(Page(i, imageUrl = url))
Page(index, imageUrl = url)
}
return pages
}
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.")

View File

@ -7,10 +7,10 @@ class MangaWorldGenerator : ThemeSourceGenerator {
override val themePkg = "mangaworld"
override val themeClass = "MangaWorld"
override val baseVersionCode: Int = 1
override val baseVersionCode: Int = 2
override val sources = listOf(
SingleLang("Mangaworld", "https://www.mangaworld.in", "it", pkgName = "mangaworld", overrideVersionCode = 5),
SingleLang("Mangaworld", "https://www.mangaworld.so", "it", pkgName = "mangaworld", overrideVersionCode = 5),
SingleLang("MangaworldAdult", "https://www.mangaworldadult.com", "it", isNsfw = true),
)