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:
Smol Ame 2024-06-04 00:04:48 -07:00 committed by Draff
parent 9b1633f28e
commit c26fee2dcd
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 11 additions and 4 deletions

View File

@ -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
} }

View File

@ -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
} }