Change to new URL (#11762)

This commit is contained in:
Promchai Chooseang 2022-05-07 04:28:14 +07:00 committed by GitHub
parent 9bff18b1fd
commit c9edc9eb42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Nekopost'
pkgNameSuffix = 'th.nekopost'
extClass = '.Nekopost'
extVersionCode = 7
extVersionCode = 8
isNsfw = true
}

View File

@ -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 {