fix Manhuaga thumbnail & add icon (#5866)
* fix Manhuaga thumbnail * manhuaga icon
This commit is contained in:
parent
78cb4e96b4
commit
5fb4e182f7
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 |
Binary file not shown.
After Width: | Height: | Size: 208 KiB |
|
@ -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()
|
||||
}
|
|
@ -137,7 +137,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Mangazuki.online", "http://mangazukinew.online", "en", className = "MangazukiOnline"),
|
||||
SingleLang("ManhuaBox", "https://manhuabox.net", "en"),
|
||||
SingleLang("ManhuaFast", "https://manhuafast.com", "en"),
|
||||
SingleLang("Manhuaga", "https://manhuaga.com", "en"),
|
||||
SingleLang("Manhuaga", "https://manhuaga.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Manhua Plus", "https://manhuaplus.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Manhuas.net", "https://manhuas.net", "en", className = "Manhuasnet"),
|
||||
SingleLang("Manhuas World", "https://manhuasworld.com", "en"),
|
||||
|
|
Loading…
Reference in New Issue