fix Manhuaga thumbnail & add icon (#5866)

* fix Manhuaga thumbnail

* manhuaga icon
This commit is contained in:
Riztard Lanthorn 2021-02-15 21:24:31 +07:00 committed by GitHub
parent 78cb4e96b4
commit 5fb4e182f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 1 deletions

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

View 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()
}

View File

@ -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"),