EroCool: fix search pagination (#9545)

This commit is contained in:
ObserverOfTime 2021-10-19 20:40:50 +03:00 committed by GitHub
parent 3e922f4101
commit 9e6aee7aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'EroCool'
pkgNameSuffix = 'all.erocool'
extClass = '.EroCoolFactory'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -46,7 +46,7 @@ class EroCool(
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
if (query.isBlank()) popularMangaRequest(page)
else GET("$baseUrl/search/q_$query $langName", headers)
else GET("$baseUrl/search/q_$query $langName/page/$page", headers)
override fun searchMangaFromElement(element: Element) = element.toManga()