MANGARAW+: update domain (#4282)
Cover images are broken on the site, fixing this by requesting the full res cover instead.
This commit is contained in:
parent
0bf59dd5e8
commit
13fcfc6996
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'MANGARAW+'
|
extName = 'MANGARAW+'
|
||||||
extClass = '.MangaRawPlus'
|
extClass = '.MangaRawPlus'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://mangarawpedia.com'
|
baseUrl = 'https://mangafenxi.net'
|
||||||
overrideVersionCode = 4
|
overrideVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,43 @@
|
||||||
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 eu.kanade.tachiyomi.network.GET
|
||||||
|
import eu.kanade.tachiyomi.source.model.Page
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
import okhttp3.Request
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class MangaRawPlus : Madara("MANGARAW+", "https://mangarawpedia.com", "ja") {
|
class MangaRawPlus : Madara("MANGARAW+", "https://mangafenxi.net", "ja") {
|
||||||
|
override fun popularMangaSelector() = searchMangaSelector()
|
||||||
|
|
||||||
|
override fun popularMangaRequest(page: Int) =
|
||||||
|
GET("$baseUrl/?s&post_type=wp-manga&m_orderby=views", headers)
|
||||||
|
|
||||||
|
override fun latestUpdatesSelector() = searchMangaSelector()
|
||||||
|
|
||||||
|
override fun latestUpdatesRequest(page: Int) =
|
||||||
|
GET("$baseUrl/?s&post_type=wp-manga&m_orderby=latest", headers)
|
||||||
|
|
||||||
|
override fun popularMangaFromElement(element: Element): SManga {
|
||||||
|
return super.popularMangaFromElement(element).apply {
|
||||||
|
thumbnail_url = thumbnail_url?.replaceFirst("-193x278", "")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun imageFromElement(element: Element): String? {
|
override fun imageFromElement(element: Element): String? {
|
||||||
return when {
|
return when {
|
||||||
element.hasAttr("data-src-img") -> element.absUrl("data-src-img")
|
element.hasAttr("data-src-img") -> element.absUrl("data-src-img")
|
||||||
else -> super.imageFromElement(element)
|
else -> super.imageFromElement(element)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun imageRequest(page: Page): Request {
|
||||||
|
val imgHeaders = headersBuilder().apply {
|
||||||
|
removeAll("Referer")
|
||||||
|
}.build()
|
||||||
|
return GET(page.imageUrl!!, imgHeaders)
|
||||||
|
}
|
||||||
|
|
||||||
|
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||||
override val useNewChapterEndpoint = false
|
override val useNewChapterEndpoint = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue