FleurBlanche: update domain (#2269)
This commit is contained in:
parent
ff7408266e
commit
ce1b255bcd
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'Fleur Blanche'
|
extName = 'Fleur Blanche'
|
||||||
extClass = '.FleurBlanche'
|
extClass = '.FleurBlanche'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://fbsquads.com'
|
baseUrl = 'https://fbsscan.com'
|
||||||
overrideVersionCode = 2
|
overrideVersionCode = 3
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,23 +3,21 @@ package eu.kanade.tachiyomi.extension.pt.fleurblanche
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
import okhttp3.Interceptor
|
import okhttp3.Interceptor
|
||||||
import okhttp3.OkHttpClient
|
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import java.util.concurrent.TimeUnit
|
|
||||||
|
|
||||||
class FleurBlanche : Madara(
|
class FleurBlanche : Madara(
|
||||||
"Fleur Blanche",
|
"Fleur Blanche",
|
||||||
"https://fbsquads.com",
|
"https://fbsscan.com",
|
||||||
"pt-BR",
|
"pt-BR",
|
||||||
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")),
|
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")),
|
||||||
) {
|
) {
|
||||||
|
|
||||||
override val client: OkHttpClient = super.client.newBuilder()
|
override val client = super.client.newBuilder()
|
||||||
.addInterceptor(::authWarningIntercept)
|
.addInterceptor(::authWarningIntercept)
|
||||||
.rateLimit(1, 2, TimeUnit.SECONDS)
|
.rateLimit(1, 2)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
override val useNewChapterEndpoint = true
|
override val useNewChapterEndpoint = true
|
||||||
|
@ -29,14 +27,9 @@ class FleurBlanche : Madara(
|
||||||
|
|
||||||
if (response.request.url.toString().contains("wp-login.php")) {
|
if (response.request.url.toString().contains("wp-login.php")) {
|
||||||
response.close()
|
response.close()
|
||||||
throw IOException(NEED_LOGIN_ERROR)
|
throw IOException("É necessário realizar o login via WebView para acessar a fonte.")
|
||||||
}
|
}
|
||||||
|
|
||||||
return response
|
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