Nekopost: new file server url (#6006)

* Nekopost: new file server url

* ext version
This commit is contained in:
scb261 2021-02-28 18:20:18 +02:00 committed by GitHub
parent e8d6cdecaa
commit 3300d4f01c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Nekopost'
pkgNameSuffix = 'th.nekopost'
extClass = '.Nekopost'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -10,6 +10,8 @@ import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Headers
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import org.json.JSONArray
@ -26,10 +28,16 @@ class Nekopost : ParsedHttpSource() {
override val baseUrl: String = "https://www.nekopost.net/manga/"
private val mangaListUrl: String = "https://www.nekopost.net/project/ajax_load_update/m/"
private val baseFileUrl: String = "https://www.nekopost.net/file_server/"
private val baseFileUrl: String = "https://fs.nekopost.net/"
private val legacyChapterDataUrl: String = "https://www.nekopost.net/reader/loadChapterContent/"
private val searchUrl: String = "https://www.nekopost.net/search/"
override val client: OkHttpClient = network.cloudflareClient
override fun headersBuilder(): Headers.Builder {
return super.headersBuilder().add("Referer", baseUrl)
}
override val lang: String = "th"
override val name: String = "Nekopost"