Aria Moradi 3bc1aa5e3b
Fmreader split (#5800)
* split fmreader

* convert Manhwa18Net to factory

* remove the extra source

* add back Manhwa18

* fix building
2021-02-12 15:41:46 -05:00

14 lines
606 B
Kotlin

package eu.kanade.tachiyomi.extension.ja.rawlh
import eu.kanade.tachiyomi.multisrc.fmreader.FMReader
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Page
import okhttp3.Request
import org.jsoup.nodes.Document
class RawLH : FMReader("RawLH", "https://lovehug.net", "ja") {
override val chapterUrlSelector = ""
override fun pageListParse(document: Document): List<Page> = base64PageListParse(document)
// Referer needs to be chapter URL
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().set("Referer", page.url).build())
}