FMReader - ManhwaSmut imageRequests (#3646)

This commit is contained in:
Mike 2020-06-30 02:34:33 -04:00 committed by GitHub
parent a06f195081
commit c32548642e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'FMReader (multiple aggregators)'
pkgNameSuffix = 'all.fmreader'
extClass = '.FMReaderFactory'
extVersionCode = 18
extVersionCode = 19
libVersion = '1.2'
}

View File

@ -332,4 +332,7 @@ class EpikManga : FMReader("Epik Manga", "https://www.epikmanga.com", "tr") {
class ManhuaScan : FMReader("ManhuaScan", "https://manhuascan.com", "en")
class ManhwaSmut : FMReader("ManhwaSmut", "https://manhwasmut.com", "en")
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)
}