Add ManhuaOnline (#2291)

This commit is contained in:
bapeey 2024-04-06 23:38:12 -05:00 committed by GitHub
parent d16b9e42d3
commit 937faca6a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Manhua Online'
extClass = '.ManhuaOnline'
themePkg = 'madara'
baseUrl = 'https://manhuaonline.org'
overrideVersionCode = 0
isNsfw = false
}
apply from: "$rootDir/common.gradle"

View File

@ -0,0 +1,23 @@
package eu.kanade.tachiyomi.extension.es.manhuaonline
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
class ManhuaOnline : Madara(
"Manhua Online",
"https://manhuaonline.org",
"es",
SimpleDateFormat("dd 'de' MMMM 'de' yyyy", Locale("es")),
) {
override val useLoadMoreRequest = LoadMoreStrategy.Never
override val useNewChapterEndpoint = true
override val mangaDetailsSelectorTitle = "div.summary-content span.rate-title"
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(3)
.build()
}