From ce1b255bcd115ea90567d23df8018063076df7d4 Mon Sep 17 00:00:00 2001 From: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> Date: Sat, 6 Apr 2024 11:44:38 +0500 Subject: [PATCH] FleurBlanche: update domain (#2269) --- src/pt/fleurblanche/build.gradle | 4 ++-- .../extension/pt/fleurblanche/FleurBlanche.kt | 15 ++++----------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/pt/fleurblanche/build.gradle b/src/pt/fleurblanche/build.gradle index 77d7abeb4..3871f2b87 100644 --- a/src/pt/fleurblanche/build.gradle +++ b/src/pt/fleurblanche/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'Fleur Blanche' extClass = '.FleurBlanche' themePkg = 'madara' - baseUrl = 'https://fbsquads.com' - overrideVersionCode = 2 + baseUrl = 'https://fbsscan.com' + overrideVersionCode = 3 isNsfw = true } diff --git a/src/pt/fleurblanche/src/eu/kanade/tachiyomi/extension/pt/fleurblanche/FleurBlanche.kt b/src/pt/fleurblanche/src/eu/kanade/tachiyomi/extension/pt/fleurblanche/FleurBlanche.kt index 336d6c8a5..ced26abf1 100644 --- a/src/pt/fleurblanche/src/eu/kanade/tachiyomi/extension/pt/fleurblanche/FleurBlanche.kt +++ b/src/pt/fleurblanche/src/eu/kanade/tachiyomi/extension/pt/fleurblanche/FleurBlanche.kt @@ -3,23 +3,21 @@ package eu.kanade.tachiyomi.extension.pt.fleurblanche import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.network.interceptor.rateLimit import okhttp3.Interceptor -import okhttp3.OkHttpClient import okhttp3.Response import java.io.IOException import java.text.SimpleDateFormat import java.util.Locale -import java.util.concurrent.TimeUnit class FleurBlanche : Madara( "Fleur Blanche", - "https://fbsquads.com", + "https://fbsscan.com", "pt-BR", SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")), ) { - override val client: OkHttpClient = super.client.newBuilder() + override val client = super.client.newBuilder() .addInterceptor(::authWarningIntercept) - .rateLimit(1, 2, TimeUnit.SECONDS) + .rateLimit(1, 2) .build() override val useNewChapterEndpoint = true @@ -29,14 +27,9 @@ class FleurBlanche : Madara( if (response.request.url.toString().contains("wp-login.php")) { response.close() - throw IOException(NEED_LOGIN_ERROR) + throw IOException("É necessário realizar o login via WebView para acessar a fonte.") } return response } - - companion object { - private const val NEED_LOGIN_ERROR = - "É necessário realizar o login via WebView para acessar a fonte." - } }