add HastaTeam (#4647)

* new source: Hasta Team

* newline
This commit is contained in:
AwkwardPeak7 2024-08-17 09:55:53 +05:00 committed by Draff
parent e90f887d47
commit 0f09d40fde
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ext {
extName = 'Hasta Team'
extClass = '.HastaTeam'
themePkg = 'pizzareader'
baseUrl = 'https://reader.hastateam.com'
overrideVersionCode = 0
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,31 @@
package eu.kanade.tachiyomi.extension.it.hastateam
import eu.kanade.tachiyomi.multisrc.pizzareader.PizzaReader
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import kotlinx.serialization.json.Json
class HastaTeam : PizzaReader(
"Hasta Team",
"https://reader.hastateam.com",
"it",
) {
override val client = super.client.newBuilder()
.addInterceptor { chain ->
val url = chain.request().url.newBuilder()
.scheme("https")
.build()
val request = chain.request().newBuilder()
.url(url)
.build()
chain.proceed(request)
}
.rateLimit(1)
.build()
override val json = Json {
ignoreUnknownKeys = true
coerceInputValues = true
}
}