BoyLove: use Cloudflare client (#13534)
This commit is contained in:
parent
a7c19b4959
commit
5467390997
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'BoyLove'
|
extName = 'BoyLove'
|
||||||
pkgNameSuffix = 'zh.boylove'
|
pkgNameSuffix = 'zh.boylove'
|
||||||
extClass = '.BoyLove'
|
extClass = '.BoyLove'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ class BoyLove : HttpSource(), ConfigurableSource {
|
||||||
override val baseUrl = "https://" + preferences.getString(MIRROR_PREF, "0")!!.toInt()
|
override val baseUrl = "https://" + preferences.getString(MIRROR_PREF, "0")!!.toInt()
|
||||||
.coerceIn(0, MIRRORS.size - 1).let { MIRRORS[it] }
|
.coerceIn(0, MIRRORS.size - 1).let { MIRRORS[it] }
|
||||||
|
|
||||||
override val client = network.client.newBuilder()
|
override val client = network.cloudflareClient.newBuilder()
|
||||||
.rateLimit(2)
|
.rateLimit(2)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue