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+'
|
||||
extClass = '.MangaRawPlus'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://newmangaraw.com'
|
||||
overrideVersionCode = 2
|
||||
baseUrl = 'https://newmangaraw.net'
|
||||
overrideVersionCode = 3
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,15 @@
|
|||
package eu.kanade.tachiyomi.extension.ja.mangarawplus
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class MangaRawPlus : Madara("MANGARAW+", "https://newmangaraw.com", "ja") {
|
||||
override val mangaSubString = "sp"
|
||||
class MangaRawPlus : Madara("MANGARAW+", "https://newmangaraw.net", "ja") {
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue