From a1e9a6c15de0300fb8257127a23f9bed2c6b3738 Mon Sep 17 00:00:00 2001 From: MeLoseAgain <116882702+MeLoseAgain@users.noreply.github.com> Date: Mon, 20 Mar 2023 05:09:12 +0700 Subject: [PATCH] Fix Popular And Latest Post pornhwa18 (#15762) * Add Pornhwa18 * Update MadaraGenerator.kt * Update PornHwa18.kt * Fix Popular Manga And Latest Updates * Update PornHwa18.kt * Update PornHwa18.kt * Update PornHwa18.kt * Fix error * fix class issue --- multisrc/overrides/madara/pornhwa18/src/Pornhwa18.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 multisrc/overrides/madara/pornhwa18/src/Pornhwa18.kt diff --git a/multisrc/overrides/madara/pornhwa18/src/Pornhwa18.kt b/multisrc/overrides/madara/pornhwa18/src/Pornhwa18.kt new file mode 100644 index 000000000..d0dd13757 --- /dev/null +++ b/multisrc/overrides/madara/pornhwa18/src/Pornhwa18.kt @@ -0,0 +1,11 @@ +package eu.kanade.tachiyomi.extension.id.pornhwa18 + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.GET +import okhttp3.Request + +class Pornhwa18 : Madara("Pornhwa18", "https://pornhwa18.com", "id") { + override val filterNonMangaItems = false + override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/series/page/$page/?m_orderby=views", headers) + override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/series/page/$page/?m_orderby=latest", headers) +}