Manga District: fix thumbnail (#3137)
* Manga District: fix thumbnail * use absolute URL always
This commit is contained in:
parent
6d3f09e1df
commit
a4e879bba9
|
@ -3,7 +3,7 @@ ext {
|
|||
extClass = '.MangaDistrict'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://mangadistrict.com'
|
||||
overrideVersionCode = 4
|
||||
overrideVersionCode = 5
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue