MANGARAW+: Update domain (#3368)
* Updated domain URL, substring, and added override for thumbnails * Added rest of `imageFromElement` * Updated `else` with suggestion * Use suggested `imageFromElement` lines
This commit is contained in:
parent
9b1633f28e
commit
c26fee2dcd
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'MANGARAW+'
|
extName = 'MANGARAW+'
|
||||||
extClass = '.MangaRawPlus'
|
extClass = '.MangaRawPlus'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://newmangaraw.com'
|
baseUrl = 'https://newmangaraw.net'
|
||||||
overrideVersionCode = 2
|
overrideVersionCode = 3
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
package eu.kanade.tachiyomi.extension.ja.mangarawplus
|
package eu.kanade.tachiyomi.extension.ja.mangarawplus
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class MangaRawPlus : Madara("MANGARAW+", "https://newmangaraw.com", "ja") {
|
class MangaRawPlus : Madara("MANGARAW+", "https://newmangaraw.net", "ja") {
|
||||||
override val mangaSubString = "sp"
|
override val mangaSubString = "ts"
|
||||||
|
override fun imageFromElement(element: Element): String? {
|
||||||
|
return when {
|
||||||
|
element.hasAttr("data-src-img") -> element.absUrl("data-src-img")
|
||||||
|
else -> super.imageFromElement(element)
|
||||||
|
}
|
||||||
|
}
|
||||||
override val useNewChapterEndpoint = false
|
override val useNewChapterEndpoint = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue