Comico: Remove KO, EN, ZH, move to JA only (#11429)
* Comico: Move from ALL to JA * Comico: Bump versionCode & update extClass * Comico: Fresh versionCode
@ -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(),
|
||||
)
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Comico'
|
||||
extClass = '.ComicoFactory'
|
||||
extVersionCode = 7
|
||||
extClass = '.Comico'
|
||||
extVersionCode = 1
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
@ -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/")
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package eu.kanade.tachiyomi.extension.all.comico
|
||||
package eu.kanade.tachiyomi.extension.ja.comico
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||