From 71f716526ebb608100b4f2e0a86deba66b68d10c Mon Sep 17 00:00:00 2001 From: anenasa <84259093+anenasa@users.noreply.github.com> Date: Sat, 2 Dec 2023 23:42:43 +0800 Subject: [PATCH] 6Manhua: Update mirrors url and fix image not loading (#19114) --- src/zh/sixmh/build.gradle | 2 +- .../sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zh/sixmh/build.gradle b/src/zh/sixmh/build.gradle index 3514b5dfb..978f7daa1 100644 --- a/src/zh/sixmh/build.gradle +++ b/src/zh/sixmh/build.gradle @@ -6,7 +6,7 @@ ext { extName = '6Manhua / Qixi Manhua' pkgNameSuffix = 'zh.sixmh' extClass = '.SixMH' - extVersionCode = 8 + extVersionCode = 9 } apply from: "$rootDir/common.gradle" diff --git a/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt b/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt index 0fb551939..0207f5259 100644 --- a/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt +++ b/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt @@ -182,6 +182,7 @@ class SixMH : HttpSource(), ConfigurableSource { override fun pageListParse(response: Response): List { val result = Unpacker.unpack(response.body.string(), "[", "]") .ifEmpty { return emptyList() } + .replace("\\u0026", "&") .replace("\\", "") .removeSurrounding("\"").split("\",\"") return result.mapIndexed { i, url -> Page(i, imageUrl = url) } @@ -213,7 +214,7 @@ class SixMH : HttpSource(), ConfigurableSource { const val MIRROR_PREF = "MIRROR" /** Note: mirror index affects [chapterListParse] */ - val MIRRORS get() = arrayOf("6mh67.com", "qiximh3.com") + val MIRRORS get() = arrayOf("sixmanhua.com", "qiximh3.com") val MIRROR_NAMES get() = arrayOf("6漫画", "七夕漫画") private val dateFormat by lazy { SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH) }