CVIUS e7339ba7ce
add ManhuaPro, add icons & rate limiter MMS (#7315)
* Create MidnightMessScans.kt

* add MMS icon

* Update MadaraGenerator.kt

* Create ManhuaPro.kt

* add ManhuaPro icon

* Update MangaClash.kt

* Update MadaraGenerator.kt

* Create additional.gradle.kts
2021-05-30 20:18:22 -04:00

24 lines
739 B
Kotlin

package eu.kanade.tachiyomi.extension.en.mangaclash
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
class MangaClash : Madara(
"Manga Clash",
"https://mangaclash.com",
"en",
dateFormat = SimpleDateFormat("MM/dd/yy", Locale.US)
) {
private val rateLimitInterceptor = RateLimitInterceptor(1)
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.connectTimeout(10, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.addNetworkInterceptor(rateLimitInterceptor)
.build()
}