From fba65e67ea41ec2be412db651154ed659c3f5468 Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Sat, 6 Apr 2024 23:38:12 -0500 Subject: [PATCH] Add ManhuaOnline (#2291) --- src/es/manhuaonline/build.gradle | 10 ++++++++ .../extension/es/manhuaonline/ManhuaOnline.kt | 23 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/es/manhuaonline/build.gradle create mode 100644 src/es/manhuaonline/src/eu/kanade/tachiyomi/extension/es/manhuaonline/ManhuaOnline.kt diff --git a/src/es/manhuaonline/build.gradle b/src/es/manhuaonline/build.gradle new file mode 100644 index 000000000..feb11592a --- /dev/null +++ b/src/es/manhuaonline/build.gradle @@ -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" diff --git a/src/es/manhuaonline/src/eu/kanade/tachiyomi/extension/es/manhuaonline/ManhuaOnline.kt b/src/es/manhuaonline/src/eu/kanade/tachiyomi/extension/es/manhuaonline/ManhuaOnline.kt new file mode 100644 index 000000000..a5736918d --- /dev/null +++ b/src/es/manhuaonline/src/eu/kanade/tachiyomi/extension/es/manhuaonline/ManhuaOnline.kt @@ -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() +}