parent
e90f887d47
commit
0f09d40fde
|
@ -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 |
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue