diff --git a/src/en/mangadistrict/build.gradle b/src/en/mangadistrict/build.gradle index 95e09fcb2..81a664004 100644 --- a/src/en/mangadistrict/build.gradle +++ b/src/en/mangadistrict/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.MangaDistrict' themePkg = 'madara' baseUrl = 'https://mangadistrict.com' - overrideVersionCode = 4 + overrideVersionCode = 5 isNsfw = true } diff --git a/src/en/mangadistrict/src/eu/kanade/tachiyomi/extension/en/mangadistrict/MangaDistrict.kt b/src/en/mangadistrict/src/eu/kanade/tachiyomi/extension/en/mangadistrict/MangaDistrict.kt index 3610d3ad4..8cddd2a4a 100644 --- a/src/en/mangadistrict/src/eu/kanade/tachiyomi/extension/en/mangadistrict/MangaDistrict.kt +++ b/src/en/mangadistrict/src/eu/kanade/tachiyomi/extension/en/mangadistrict/MangaDistrict.kt @@ -90,6 +90,13 @@ class MangaDistrict : }.let(screen::addPreference) } + override fun imageFromElement(element: Element): String? { + return when { + element.hasAttr("data-wpfc-original-src") -> element.attr("abs:data-wpfc-original-src") + else -> super.imageFromElement(element) + } + } + companion object { private const val REMOVE_TITLE_VERSION_PREF = "REMOVE_TITLE_VERSION"