extensions-source/multisrc/overrides/mmrcms/mangascan/src/MangaScan.kt
2024-01-09 05:29:54 +06:00

18 lines
547 B
Kotlin

package eu.kanade.tachiyomi.extension.fr.mangascan
import eu.kanade.tachiyomi.multisrc.mmrcms.MMRCMS
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Page
import okhttp3.Request
class MangaScan : MMRCMS("Manga-Scan", "https://mangascan.cc", "fr") {
override fun imageRequest(page: Page): Request {
val newHeaders = headersBuilder()
.set("Referer", baseUrl)
.set("Accept", "image/avif,image/webp,*/*")
.build()
return GET(page.imageUrl!!, newHeaders)
}
}