mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-21 18:02:42 +01:00
[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:
parent
9f524ee265
commit
99298ebd12
@ -2,4 +2,4 @@ plugins {
|
||||
id("lib-multisrc")
|
||||
}
|
||||
|
||||
baseVersionCode = 2
|
||||
baseVersionCode = 3
|
||||
|
@ -36,12 +36,12 @@ abstract class Senkuro(
|
||||
override val supportsLatest = false
|
||||
|
||||
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")
|
||||
|
||||
override val client: OkHttpClient =
|
||||
network.client.newBuilder()
|
||||
.rateLimit(5)
|
||||
.rateLimit(3)
|
||||
.build()
|
||||
|
||||
private inline fun <reified T : Any> T.toJsonRequestBody(): RequestBody =
|
||||
|
Loading…
Reference in New Issue
Block a user