FleurBlanche: update domain (#2269)

This commit is contained in:
AwkwardPeak7 2024-04-06 11:44:38 +05:00 committed by GitHub
parent e284e46976
commit 5675b0ab9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 13 deletions

View File

@ -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
}

View File

@ -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."
}
}