FMReader - fix 18lhplus covers (#3583)
This commit is contained in:
parent
8590ff2fb6
commit
17e3831deb
@ -5,7 +5,7 @@ ext {
|
|||||||
appName = 'Tachiyomi: FMReader (multiple aggregators)'
|
appName = 'Tachiyomi: FMReader (multiple aggregators)'
|
||||||
pkgNameSuffix = 'all.fmreader'
|
pkgNameSuffix = 'all.fmreader'
|
||||||
extClass = '.FMReaderFactory'
|
extClass = '.FMReaderFactory'
|
||||||
extVersionCode = 17
|
extVersionCode = 18
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,6 +111,19 @@ class Manhwa18 : FMReader("Manhwa18", "https://manhwa18.com", "en") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class EighteenLHPlus : FMReader("18LHPlus", "https://18lhplus.com", "en") {
|
class EighteenLHPlus : FMReader("18LHPlus", "https://18lhplus.com", "en") {
|
||||||
|
override val client: OkHttpClient = super.client.newBuilder()
|
||||||
|
.addInterceptor { chain ->
|
||||||
|
val originalRequest = chain.request()
|
||||||
|
chain.proceed(originalRequest).let { response ->
|
||||||
|
if (response.code() == 403 && originalRequest.url().host().contains("mkklcdn")) {
|
||||||
|
response.close()
|
||||||
|
chain.proceed(originalRequest.newBuilder().removeHeader("Referer").addHeader("Referer", "https://manganelo.com").build())
|
||||||
|
} else {
|
||||||
|
response
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.build()
|
||||||
override fun popularMangaNextPageSelector() = "div.col-lg-8 div.btn-group:first-of-type"
|
override fun popularMangaNextPageSelector() = "div.col-lg-8 div.btn-group:first-of-type"
|
||||||
override fun getGenreList() = getAdultGenreList()
|
override fun getGenreList() = getAdultGenreList()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user