parent
87c6e30551
commit
15f07bd2bd
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'Siikomik'
|
extName = 'Siikomik'
|
||||||
extClass = '.Siikomik'
|
extClass = '.Siikomik'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://siikomik.lat'
|
baseUrl = 'https://siikomik.cc'
|
||||||
overrideVersionCode = 10
|
overrideVersionCode = 11
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,29 +1,23 @@
|
||||||
package eu.kanade.tachiyomi.extension.id.siimanga
|
package eu.kanade.tachiyomi.extension.id.siimanga
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
import eu.kanade.tachiyomi.network.GET
|
||||||
import okhttp3.internal.http.HTTP_INTERNAL_SERVER_ERROR
|
import eu.kanade.tachiyomi.source.model.Page
|
||||||
import okhttp3.internal.http.HTTP_OK
|
import okhttp3.Request
|
||||||
|
|
||||||
class Siikomik : MangaThemesia(
|
class Siikomik : MangaThemesia(
|
||||||
"Siikomik",
|
"Siikomik",
|
||||||
"https://siikomik.lat",
|
"https://siikomik.cc",
|
||||||
"id",
|
"id",
|
||||||
) {
|
) {
|
||||||
override val versionId = 2
|
override val versionId = 2
|
||||||
|
|
||||||
override val client = super.client.newBuilder()
|
|
||||||
.rateLimit(3)
|
|
||||||
.addInterceptor { chain ->
|
|
||||||
val response = chain.proceed(chain.request())
|
|
||||||
if (response.code == HTTP_INTERNAL_SERVER_ERROR) {
|
|
||||||
return@addInterceptor response.newBuilder()
|
|
||||||
.code(HTTP_OK)
|
|
||||||
.build()
|
|
||||||
}
|
|
||||||
response
|
|
||||||
}
|
|
||||||
.build()
|
|
||||||
|
|
||||||
override val hasProjectPage = true
|
override val hasProjectPage = true
|
||||||
|
|
||||||
|
override fun imageRequest(page: Page): Request {
|
||||||
|
val imageHeaders = headers.newBuilder()
|
||||||
|
.removeAll("Referer")
|
||||||
|
.build()
|
||||||
|
return GET(page.imageUrl!!, imageHeaders)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue