From 4083f04eb16635891d820955a4d55e4e697aa7c8 Mon Sep 17 00:00:00 2001 From: anenasa <84259093+anenasa@users.noreply.github.com> Date: Wed, 21 Jun 2023 00:12:01 +0800 Subject: [PATCH] Happymh: Fix search (#16783) --- src/zh/happymh/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/zh/happymh/build.gradle b/src/zh/happymh/build.gradle index 31cd6cb7a..073114559 100644 --- a/src/zh/happymh/build.gradle +++ b/src/zh/happymh/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Happymh' pkgNameSuffix = 'zh.happymh' extClass = '.Happymh' - extVersionCode = 4 + extVersionCode = 5 } apply from: "$rootDir/common.gradle" diff --git a/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt b/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt index 7cd4851fa..e9842e6f1 100644 --- a/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt +++ b/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt @@ -83,12 +83,11 @@ class Happymh : HttpSource(), ConfigurableSource { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { val body = FormBody.Builder().addEncoded("searchkey", query).build() - val header = headersBuilder().add("referer", "$baseUrl/ssearch").build() - return POST("$baseUrl/apis/m/ssearch?pn=$page", header, body) + val header = headersBuilder().add("referer", "$baseUrl/sssearch").build() + return POST("$baseUrl/apis/m/ssearch", header, body) } override fun searchMangaParse(response: Response): MangasPage { - // I do not find a way to go to next page, so I always set hasNextPage to false return MangasPage(popularMangaParse(response).mangas, false) }