ComicLatest: Get following pages in search (#3840)

* Update build.gradle

* Get following pages in search
This commit is contained in:
AbdullahM0hamed 2020-07-19 10:12:51 +01:00 committed by GitHub
parent be3a2b2a89
commit 74de3291ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'WP-Comics' extName = 'WP-Comics'
pkgNameSuffix = 'all.wpcomics' pkgNameSuffix = 'all.wpcomics'
extClass = '.WPComicsFactory' extClass = '.WPComicsFactory'
extVersionCode = 12 extVersionCode = 13
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -126,12 +126,12 @@ private class ComicLatest : WPComics("ComicLatest", "https://comiclatest.com", "
when (filter) { when (filter) {
is AuthorFilter -> { is AuthorFilter -> {
val author = filter.state.trim().replace(" ", "-").toLowerCase() val author = filter.state.trim().replace(" ", "-").toLowerCase()
return GET("$baseUrl/author/$author", headers) return GET("$baseUrl/author/$author?page=$page", headers)
} }
} }
} }
return GET("$baseUrl/search?keyword=$query", headers) return GET("$baseUrl/search?keyword=$query&page=$page", headers)
} }
override fun searchMangaSelector() = "div.item div.box_img > a[title]" override fun searchMangaSelector() = "div.item div.box_img > a[title]"