Manta Comics: encode search, mark as NSFW (#8661)
This commit is contained in:
parent
07509542fd
commit
956b7f05e0
@ -2,6 +2,7 @@ ext {
|
||||
extName = 'Manta Comics'
|
||||
extClass = '.MantaComics'
|
||||
extVersionCode = 5
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -14,6 +14,7 @@ import kotlinx.serialization.json.jsonObject
|
||||
import okhttp3.Cookie
|
||||
import okhttp3.CookieJar
|
||||
import okhttp3.HttpUrl
|
||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||
import okhttp3.Request
|
||||
import okhttp3.Response
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
@ -53,7 +54,11 @@ class MantaComics : HttpSource() {
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
|
||||
filters.category.ifEmpty { if (query.isEmpty()) "New" else "" }.let {
|
||||
GET("$baseUrl/manta/v1/search/series?cat=$it&q=$query", headers)
|
||||
val url = "$baseUrl/manta/v1/search/series".toHttpUrl().newBuilder()
|
||||
.addQueryParameter("cat", it)
|
||||
.addQueryParameter("q", query)
|
||||
.build()
|
||||
GET(url, headers)
|
||||
}
|
||||
|
||||
override fun searchMangaParse(response: Response) =
|
||||
|
Loading…
x
Reference in New Issue
Block a user