mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 19:52:56 +01:00
FleurBlanche: update domain (#2269)
This commit is contained in:
parent
e284e46976
commit
5675b0ab9d
@ -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
|
||||
}
|
||||
|
||||
|
@ -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."
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user