18 lines
547 B
Kotlin
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)
|
|
}
|
|
}
|