11 lines
505 B
Kotlin
11 lines
505 B
Kotlin
package eu.kanade.tachiyomi.extension.en.manhwasmut
|
|
|
|
import eu.kanade.tachiyomi.multisrc.fmreader.FMReader
|
|
import eu.kanade.tachiyomi.network.GET
|
|
import eu.kanade.tachiyomi.source.model.Page
|
|
import okhttp3.Request
|
|
|
|
class ManhwaSmut : FMReader("ManhwaSmut", "https://manhwasmut.com", "en") {
|
|
private val noReferer = headersBuilder().removeAll("Referer").build()
|
|
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, if (page.imageUrl!!.contains("toonily")) noReferer else headers)
|
|
} |