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
This commit is contained in:
CVIUS 2021-05-31 08:18:22 +08:00 committed by GitHub
parent 601f7c38b7
commit e7339ba7ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 66 additions and 4 deletions

View File

@ -0,0 +1,4 @@
dependencies {
implementation project(':lib-ratelimit')
}

View File

@ -1,12 +1,23 @@
package eu.kanade.tachiyomi.extension.en.mangaclash package eu.kanade.tachiyomi.extension.en.mangaclash
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
class MangaClash : Madara( class MangaClash : Madara(
"Manga Clash", "Manga Clash",
"https://mangaclash.com", "https://mangaclash.com",
"en", "en",
dateFormat = SimpleDateFormat("MM/dd/yy", Locale.US) 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()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,23 @@
package eu.kanade.tachiyomi.extension.en.manhuapro
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 ManhuaPro : Madara(
"ManhuaPro",
"https://manhuapro.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()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View File

@ -0,0 +1,23 @@
package eu.kanade.tachiyomi.extension.en.midnightmessscans
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 MidnightMessScans : Madara(
"Midnight Mess Scans",
"https://midnightmess.org",
"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()
}

View File

@ -107,7 +107,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Manga Bin", "https://mangabin.com/", "en"), SingleLang("Manga Bin", "https://mangabin.com/", "en"),
SingleLang("MangaBob", "https://mangabob.com", "en"), SingleLang("MangaBob", "https://mangabob.com", "en"),
SingleLang("Manga Chill", "https://mangachill.com/", "en"), SingleLang("Manga Chill", "https://mangachill.com/", "en"),
SingleLang("Manga Clash", "https://mangaclash.com", "en"), SingleLang("Manga Clash", "https://mangaclash.com", "en", overrideVersionCode = 1),
SingleLang("MangaCultivator", "https://mangacultivator.com", "en"), SingleLang("MangaCultivator", "https://mangacultivator.com", "en"),
SingleLang("MangaDods", "https://www.mangadods.com", "en"), SingleLang("MangaDods", "https://www.mangadods.com", "en"),
SingleLang("Manga Drop Out", "https://www.mangadropout.xyz", "id", isNsfw = true), SingleLang("Manga Drop Out", "https://www.mangadropout.xyz", "id", isNsfw = true),
@ -178,7 +178,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ManyToon.me", "https://manytoon.me", "en", className = "ManyToonMe", overrideVersionCode = 1), SingleLang("ManyToon.me", "https://manytoon.me", "en", className = "ManyToonMe", overrideVersionCode = 1),
SingleLang("Mark Scans", "https://markscans.online", "pt-BR", overrideVersionCode = 1), SingleLang("Mark Scans", "https://markscans.online", "pt-BR", overrideVersionCode = 1),
SingleLang("MG Komik", "https://mgkomik.my.id", "id"), SingleLang("MG Komik", "https://mgkomik.my.id", "id"),
SingleLang("Midnight Mess Scans", "https://midnightmess.org", "en"), SingleLang("Midnight Mess Scans", "https://midnightmess.org", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Milftoon", "https://milftoon.xxx", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Milftoon", "https://milftoon.xxx", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Miracle Scans", "https://miraclescans.com", "en"), SingleLang("Miracle Scans", "https://miraclescans.com", "en"),
SingleLang("Mixed Manga", "https://mixedmanga.com", "en"), SingleLang("Mixed Manga", "https://mixedmanga.com", "en"),
@ -294,7 +294,8 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Fudido Scanlator", "https://fudidoscan.com", "pt-BR", isNsfw = true), SingleLang("Fudido Scanlator", "https://fudidoscan.com", "pt-BR", isNsfw = true),
SingleLang("Yaoi Manga", "https://yaoi.mobi", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Yaoi Manga", "https://yaoi.mobi", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Free Manga", "https://freemanga.me", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Free Manga", "https://freemanga.me", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("MangaTuli", "https://mangatuli.com", "en", isNsfw = true, overrideVersionCode = 1) SingleLang("MangaTuli", "https://mangatuli.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("ManhuaPro", "https://manhuapro.com", "en")
) )