From 4e49ac42e781f825d71bc3c97b53e0c192e6ae4e Mon Sep 17 00:00:00 2001 From: Chopper <156493704+choppeh@users.noreply.github.com> Date: Sat, 16 Nov 2024 03:23:39 -0300 Subject: [PATCH] Add ReadMangas (#6064) --- src/pt/readmangas/build.gradle | 9 +++++++++ .../extension/pt/readmangas/ReadMangas.kt | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/pt/readmangas/build.gradle create mode 100644 src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt diff --git a/src/pt/readmangas/build.gradle b/src/pt/readmangas/build.gradle new file mode 100644 index 000000000..33db403f5 --- /dev/null +++ b/src/pt/readmangas/build.gradle @@ -0,0 +1,9 @@ +ext { + extName = 'Read Mangas' + extClass = '.ReadMangas' + themePkg = 'mangathemesia' + baseUrl = 'https://readmangas.org' + overrideVersionCode = 0 +} + +apply from: "$rootDir/common.gradle" diff --git a/src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt b/src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt new file mode 100644 index 000000000..ad6d9dc03 --- /dev/null +++ b/src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt @@ -0,0 +1,18 @@ +package eu.kanade.tachiyomi.extension.pt.readmangas + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale + +class ReadMangas : MangaThemesia( + "Read Mangas", + "https://readmangas.org", + "pt-BR", + dateFormat = SimpleDateFormat("MMM dd, yyyy", Locale("pt", "BR")), +) { + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(3) + .build() +}