HolyManga: Updated image src (#13055)

* HolyManga: use src if data-src does no exist

* Updated base version

* Fixed typo
This commit is contained in:
Martin 2022-08-18 03:27:47 +01:00 committed by GitHub
parent 94b2b7339a
commit 66534d1899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ abstract class Zbulu(
override fun pageListParse(document: Document): List<Page> {
return document.select("div.chapter-content img").mapIndexed { i, img ->
Page(i, "", img.attr("abs:data-src"))
Page(i, "", img.attr(if (img.hasAttr("data-src")) "abs:data-src" else "abs:src"))
}
}

View File

@ -9,7 +9,7 @@ class ZbuluGenerator : ThemeSourceGenerator {
override val themeClass = "Zbulu"
override val baseVersionCode: Int = 4
override val baseVersionCode: Int = 5
override val sources = listOf(
SingleLang("HolyManga", "https://w15.holymanga.net", "en", overrideVersionCode = 1),