Komik AV -> Apkomik: change domain (#1778)

This commit is contained in:
AwkwardPeak7 2024-03-09 19:21:32 +05:00 committed by GitHub
parent b49a0fb8fc
commit 8e8b7b1121
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 16 deletions

View File

@ -1,9 +1,9 @@
ext { ext {
extName = 'Komik AV' extName = 'APKOMIK'
extClass = '.KomikAV' extClass = '.Apkomik'
themePkg = 'mangathemesia' themePkg = 'mangathemesia'
baseUrl = 'https://komikav.com' baseUrl = 'https://apkomik.cc'
overrideVersionCode = 1 overrideVersionCode = 2
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -1,30 +1,22 @@
package eu.kanade.tachiyomi.extension.id.komikav package eu.kanade.tachiyomi.extension.id.komikav
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.interceptor.rateLimit import eu.kanade.tachiyomi.network.interceptor.rateLimit
import eu.kanade.tachiyomi.source.model.Page
import okhttp3.OkHttpClient
import okhttp3.Request
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class KomikAV : MangaThemesia( class Apkomik : MangaThemesia(
"Komik AV (WP Manga Stream)", "APKOMIK",
"https://komikav.com", "https://apkomik.cc",
"id", "id",
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.forLanguageTag("id")), dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.forLanguageTag("id")),
) { ) {
// Formerly "Komik AV (WP Manga Stream)" // Formerly "Komik AV (WP Manga Stream)"
override val id = 7875815514004535629 override val id = 7875815514004535629
override val client: OkHttpClient = super.client.newBuilder() override val client = super.client.newBuilder()
.rateLimit(4) .rateLimit(4)
.build() .build()
override fun imageRequest(page: Page): Request {
return GET(page.imageUrl!!, headers)
}
override val hasProjectPage = true override val hasProjectPage = true
} }