fix Manhuaga thumbnail & add icon (#5866)
* fix Manhuaga thumbnail * manhuaga icon
This commit is contained in:
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
multisrc/overrides/madara/manhuaga/res/web_hi_res_512.png
Normal file
BIN
multisrc/overrides/madara/manhuaga/res/web_hi_res_512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 208 KiB |
20
multisrc/overrides/madara/manhuaga/src/Manhuaga.kt
Normal file
20
multisrc/overrides/madara/manhuaga/src/Manhuaga.kt
Normal file
@ -0,0 +1,20 @@
|
||||
package eu.kanade.tachiyomi.extension.en.manhuaga
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import okhttp3.OkHttpClient
|
||||
|
||||
class Manhuaga : Madara("Manhuaga", "https://manhuaga.com", "en") {
|
||||
override val client: OkHttpClient = super.client.newBuilder()
|
||||
.addInterceptor { chain ->
|
||||
val originalRequest = chain.request()
|
||||
chain.proceed(originalRequest).let { response ->
|
||||
if (response.code() == 403) {
|
||||
response.close()
|
||||
chain.proceed(originalRequest.newBuilder().removeHeader("Referer").addHeader("Referer", "https://manhuaga.com").build())
|
||||
} else {
|
||||
response
|
||||
}
|
||||
}
|
||||
}
|
||||
.build()
|
||||
}
|
Reference in New Issue
Block a user