From b15d718ebb4d7d5a337cebcccca6f3fdfbd2b44e Mon Sep 17 00:00:00 2001 From: FourTOne5 <59261191+FourTOne5@users.noreply.github.com> Date: Sun, 30 May 2021 06:26:09 +0600 Subject: [PATCH] Home Hero Scans Fix HTTP Error 500 (#7282) * Fix HTTP Error 500 * Update build.gradle --- src/en/homeheroscans/build.gradle | 2 +- .../tachiyomi/extension/en/homeheroscans/HomeHeroScans.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/homeheroscans/build.gradle b/src/en/homeheroscans/build.gradle index ac8cd2f02..d4f093142 100644 --- a/src/en/homeheroscans/build.gradle +++ b/src/en/homeheroscans/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Home Hero Scans' pkgNameSuffix = "en.homeheroscans" extClass = '.HomeHeroScans' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/en/homeheroscans/src/eu/kanade/tachiyomi/extension/en/homeheroscans/HomeHeroScans.kt b/src/en/homeheroscans/src/eu/kanade/tachiyomi/extension/en/homeheroscans/HomeHeroScans.kt index d1b94f444..4880098a6 100644 --- a/src/en/homeheroscans/src/eu/kanade/tachiyomi/extension/en/homeheroscans/HomeHeroScans.kt +++ b/src/en/homeheroscans/src/eu/kanade/tachiyomi/extension/en/homeheroscans/HomeHeroScans.kt @@ -121,8 +121,8 @@ open class HomeHeroScans : HttpSource() { override fun chapterListRequest(manga: SManga): Request { val series = "$baseUrl${manga.url}".toHttpUrlOrNull()!!.queryParameter("series") - return POST( - "$baseUrl/api/chapters", headers, """{"series":"$series"}""".toRequestBody("text/plain;charset=utf-8".toMediaTypeOrNull()) + return GET( + "$baseUrl/api/chapters?series=$series", headers ) }