Fmreader split (#5800)

* split fmreader

* convert Manhwa18Net to factory

* remove the extra source

* add back Manhwa18

* fix building
This commit is contained in:
Aria Moradi
2021-02-12 12:41:46 -08:00
committed by GitHub
parent 09216d222d
commit 3bc1aa5e3b
22 changed files with 372 additions and 301 deletions

View File

@ -0,0 +1,11 @@
package eu.kanade.tachiyomi.extension.tr.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)
}