From c9edc9eb428c0824b22ac09fe830e27244b3bdba Mon Sep 17 00:00:00 2001 From: Promchai Chooseang Date: Sat, 7 May 2022 04:28:14 +0700 Subject: [PATCH] Change to new URL (#11762) --- src/th/nekopost/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/th/nekopost/build.gradle b/src/th/nekopost/build.gradle index 031dee5cb..37bb92eb5 100644 --- a/src/th/nekopost/build.gradle +++ b/src/th/nekopost/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Nekopost' pkgNameSuffix = 'th.nekopost' extClass = '.Nekopost' - extVersionCode = 7 + extVersionCode = 8 isNsfw = true } diff --git a/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt b/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt index 94b28341a..680eb725f 100644 --- a/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt +++ b/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt @@ -30,10 +30,10 @@ class Nekopost : ParsedHttpSource() { override val baseUrl: String = "https://www.nekopost.net/manga/" private val latestMangaEndpoint: String = - "https://uatapi.nekopost.net/frontAPI/getLatestChapter/m" + "https://api.osemocphoto.com/frontAPI/getLatestChapter/m" private val projectDataEndpoint: String = - "https://uatapi.nekopost.net/frontAPI/getProjectInfo" - private val fileHost: String = "https://fs.nekopost.net" + "https://api.osemocphoto.com/frontAPI/getProjectInfo" + private val fileHost: String = "https://www.osemocphoto.com" override val client: OkHttpClient = network.cloudflareClient @@ -169,7 +169,7 @@ class Nekopost : ParsedHttpSource() { override fun popularMangaRequest(page: Int): Request { if (page <= 1) existingProject.clear() - return GET("$latestMangaEndpoint/${page - 1}") + return GET("$latestMangaEndpoint/$page") } override fun popularMangaParse(response: Response): MangasPage {