[RU]Senkuro fix many request, low rateLimit (#3405)

* [RU]Senkuro fix many request, low rateLimit

* https://github.com/keiyoushi/extensions-source
This commit is contained in:
Eshlender 2024-06-06 11:30:56 +05:00 committed by GitHub
parent 9f524ee265
commit 99298ebd12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc") id("lib-multisrc")
} }
baseVersionCode = 2 baseVersionCode = 3

View File

@ -36,12 +36,12 @@ abstract class Senkuro(
override val supportsLatest = false override val supportsLatest = false
override fun headersBuilder(): Headers.Builder = Headers.Builder() override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("User-Agent", "Tachiyomi (+https://github.com/tachiyomiorg/tachiyomi)") .add("User-Agent", "Tachiyomi (+https://github.com/keiyoushi/extensions-source)")
.add("Content-Type", "application/json") .add("Content-Type", "application/json")
override val client: OkHttpClient = override val client: OkHttpClient =
network.client.newBuilder() network.client.newBuilder()
.rateLimit(5) .rateLimit(3)
.build() .build()
private inline fun <reified T : Any> T.toJsonRequestBody(): RequestBody = private inline fun <reified T : Any> T.toJsonRequestBody(): RequestBody =