diff --git a/multisrc/overrides/madara/rwbyscan/src/RwbyScan.kt b/multisrc/overrides/madara/rwbyscan/src/RwbyScan.kt new file mode 100644 index 000000000..e98ea3338 --- /dev/null +++ b/multisrc/overrides/madara/rwbyscan/src/RwbyScan.kt @@ -0,0 +1,20 @@ +package eu.kanade.tachiyomi.extension.pt.rwbyscan + +import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor +import eu.kanade.tachiyomi.multisrc.madara.Madara +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale +import java.util.concurrent.TimeUnit + +class RwbyScan : Madara( + "RWBY Scan", + "https://rwbyscan.site", + "pt-BR", + SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")) +) { + + override val client: OkHttpClient = super.client.newBuilder() + .addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS)) + .build() +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt index 09d6ed31f..79afa60a3 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt @@ -810,7 +810,7 @@ abstract class Madara( // Added "title" alternative chapter.date_upload = select("img:not(.thumb)").firstOrNull()?.attr("alt")?.let { parseRelativeDate(it) } ?: select("span a").firstOrNull()?.attr("title")?.let { parseRelativeDate(it) } - ?: parseChapterDate(select("span.chapter-release-date").firstOrNull()?.text()) + ?: parseChapterDate(select("span.chapter-release-date").firstOrNull()?.text()) } return chapter diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index 1b32a9583..6387f365c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -371,6 +371,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Reset Scans", "https://reset-scans.com", "en", overrideVersionCode = 5), SingleLang("Rh2PlusManga", "https://www.rh2plusmanga.com", "th", overrideVersionCode = 3), SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1), + SingleLang("RWBY Scan", "https://rwbyscan.site", "pt-BR", isNsfw = true, className = "RwbyScan"), SingleLang("S2Manga", "https://s2manga.com", "en", overrideVersionCode = 1), SingleLang("SISI GELAP", "https://sigel.xyz", "id", overrideVersionCode = 3), SingleLang("SamuraiScan", "https://samuraiscan.com", "es", overrideVersionCode = 1),