BoyLove: use Cloudflare client (#13534)

This commit is contained in:
stevenyomi 2022-09-21 10:59:04 +08:00 committed by GitHub
parent a7c19b4959
commit 5467390997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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()