Update extension due to MSM domain changes. (#851)

Update extension due to MSM domain changes.
This commit is contained in:
DitFranXX 2019-02-27 23:37:05 +09:00 committed by Carlos
parent 309e870bed
commit 268115a52d
3 changed files with 16 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaShow.Me'
pkgNameSuffix = 'ko.mangashowme'
extClass = '.MangaShowMe'
extVersionCode = 4
extVersionCode = 5
libVersion = '1.2'
}

View File

@ -75,9 +75,22 @@ internal class ImageDecoderInterceptor : Interceptor {
*
* Copyright (c) 2019 junheah
*/
private fun decodeV1ImageNative(input: Bitmap, chapter: Int, view_cnt: Int, half: Int = 0, CX: Int = MangaShowMe.V1_CX, CY: Int = MangaShowMe.V1_CY): Bitmap {
private fun decodeV1ImageNative(input: Bitmap, chapter: Int, view_cnt: Int, half: Int = 0, _CX: Int = MangaShowMe.V1_CX, _CY: Int = MangaShowMe.V1_CY): Bitmap {
if (view_cnt == 0) return input
val viewCnt = view_cnt / 10
var CX = _CX
var CY = _CY
//view_cnt / 10 > 30000 ? (this._CX = 1, this._CY = 6) : view_cnt / 10 > 20000 ? this._CX = 1 : view_cnt / 10 > 10000 && (this._CY = 1)
// DO NOT (AUTOMATICALLY) REPLACE TO when USING IDEA. seems it doesn't detect correct condition
if (viewCnt > 30000) {
CX = 1
CY = 6
} else if (viewCnt > 20000) {
CX = 1
} else if (viewCnt > 10000) {
CY = 1
}
//decode image
val order = Array(CX * CY) { IntArray(2) }

View File

@ -24,7 +24,7 @@ import java.util.concurrent.TimeUnit
**/
class MangaShowMe : ParsedHttpSource() {
override val name = "MangaShow.Me"
override val baseUrl = "https://mangashow2.me"
override val baseUrl = "https://mangashow3.me"
override val lang: String = "ko"
// Latest updates currently returns duplicate manga as it separates manga into chapters