re-mangaowl: fix single page only showing when using text search & filter (#8119)

* Update MangaOwl.kt

* Update build.gradle
This commit is contained in:
CVIUS 2021-07-15 18:15:04 +08:00 committed by GitHub
parent 437ed79e5e
commit 3da1280168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaOwl'
pkgNameSuffix = 'en.mangaowl'
extClass = '.MangaOwl'
extVersionCode = 15
extVersionCode = 16
libVersion = '1.2'
}

View File

@ -70,8 +70,7 @@ class MangaOwl : ParsedHttpSource() {
// Search
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = ("$baseUrl/search/$page" + if (page > 1) "/$page" else "").toHttpUrlOrNull()!!.newBuilder()
url.addQueryParameter("search", query)
val url = "$baseUrl/search/$page?search=$query".toHttpUrlOrNull()!!.newBuilder()
filters.forEach { filter ->
when (filter) {
@ -93,7 +92,7 @@ class MangaOwl : ParsedHttpSource() {
override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element)
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
override fun searchMangaNextPageSelector() = "div.navigation li a:contains(next)"
// Manga summary page