Comico: Remove KO, EN, ZH, move to JA only (#11429)

* Comico: Move from ALL to JA

* Comico: Bump versionCode & update extClass

* Comico: Fresh versionCode
This commit is contained in:
Smol Ame 2025-11-11 21:36:43 -08:00 committed by Draff
parent 6bf6da4db8
commit f817f7b049
Signed by: Draff
GPG Key ID: E8A89F3211677653
9 changed files with 13 additions and 33 deletions

View File

@ -1,19 +0,0 @@
package eu.kanade.tachiyomi.extension.all.comico
import eu.kanade.tachiyomi.source.SourceFactory
class ComicoFactory : SourceFactory {
open class PocketComics(langCode: String) :
Comico("https://www.pocketcomics.com", "POCKET COMICS", langCode)
class ComicoJP : Comico("https://www.comico.jp", "コミコ", "ja-JP")
class ComicoKR : Comico("https://www.comico.kr", "코미코", "ko-KR")
override fun createSources() = listOf(
PocketComics("en-US"),
PocketComics("zh-TW"),
ComicoJP(),
ComicoKR(),
)
}

View File

@ -1,7 +1,7 @@
ext {
extName = 'Comico'
extClass = '.ComicoFactory'
extVersionCode = 7
extClass = '.Comico'
extVersionCode = 1
isNsfw = true
}

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.extension.all.comico
package eu.kanade.tachiyomi.extension.ja.comico
import android.webkit.CookieManager
import eu.kanade.tachiyomi.lib.cryptoaes.CryptoAES
@ -30,17 +30,16 @@ import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Locale
open class Comico(
final override val baseUrl: String,
final override val name: String,
private val langCode: String,
) : HttpSource() {
class Comico : HttpSource() {
override val name = "コミコ"
override val baseUrl = "https://www.comico.jp"
override val lang = "ja"
private val apiUrl = "https://api.comico.jp"
override val id = 4991718230921189832
final override val supportsLatest = true
override val lang = langCode.substring(0, 2)
protected open val apiUrl = baseUrl.replace("www", "api")
private val json by injectLazy<Json>()
private val cookieManager by lazy { CookieManager.getInstance() }
@ -77,7 +76,7 @@ open class Comico(
).build()
override fun headersBuilder() = Headers.Builder()
.set("Accept-Language", langCode)
.set("Accept-Language", lang)
.set("User-Agent", userAgent)
.set("Referer", "$baseUrl/")

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.extension.all.comico
package eu.kanade.tachiyomi.extension.ja.comico
import kotlinx.serialization.Serializable