From a4da018f9f22f438a9ff3a773a150bf13d6b1256 Mon Sep 17 00:00:00 2001 From: Broccoli <4424781+lmk1988@users.noreply.github.com> Date: Fri, 6 May 2022 06:37:40 +0800 Subject: [PATCH] Reverse chapter list order of baimangu (#11733) --- src/zh/baimangu/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/zh/baimangu/Baimangu.kt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/zh/baimangu/build.gradle b/src/zh/baimangu/build.gradle index 1dfe24a58..43076ba37 100644 --- a/src/zh/baimangu/build.gradle +++ b/src/zh/baimangu/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Baimangu (Darpou)' pkgNameSuffix = 'zh.baimangu' extClass = '.Baimangu' - extVersionCode = 1 + extVersionCode = 2 } dependencies { diff --git a/src/zh/baimangu/src/eu/kanade/tachiyomi/extension/zh/baimangu/Baimangu.kt b/src/zh/baimangu/src/eu/kanade/tachiyomi/extension/zh/baimangu/Baimangu.kt index 331b930d7..5b17e76f5 100644 --- a/src/zh/baimangu/src/eu/kanade/tachiyomi/extension/zh/baimangu/Baimangu.kt +++ b/src/zh/baimangu/src/eu/kanade/tachiyomi/extension/zh/baimangu/Baimangu.kt @@ -16,6 +16,7 @@ import okhttp3.Headers import okhttp3.HttpUrl.Companion.toHttpUrlOrNull import okhttp3.OkHttpClient import okhttp3.Request +import okhttp3.Response import org.jsoup.nodes.Document import org.jsoup.nodes.Element import uy.kohesive.injekt.Injekt @@ -184,6 +185,10 @@ class Baimangu : ConfigurableSource, ParsedHttpSource() { } } + // Reverse the order of the chapter list + override fun chapterListParse(response: Response): List = + super.chapterListParse(response).reversed() + override fun imageUrlParse(document: Document) = "" override fun pageListParse(document: Document): List {