Aria Moradi 34fb336c0d
Manhwasmut (#5838)
* fix manhuaSmut's package

* bump version
2021-02-13 12:59:23 -05:00

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