MangaOwl - fix search (#4178)

This commit is contained in:
Mike 2020-08-21 03:42:53 -04:00 committed by GitHub
parent c748daf66e
commit 2bf68d25f3
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 = 'MangaOwl' extName = 'MangaOwl'
pkgNameSuffix = 'en.mangaowl' pkgNameSuffix = 'en.mangaowl'
extClass = '.MangaOwl' extClass = '.MangaOwl'
extVersionCode = 6 extVersionCode = 7
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -67,7 +67,7 @@ class MangaOwl : ParsedHttpSource() {
// Search // Search
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
return GET("$baseUrl/search/$query/$page", headers) return GET("$baseUrl/search/$page?search=$query", headers)
} }
override fun searchMangaSelector() = popularMangaSelector() override fun searchMangaSelector() = popularMangaSelector()
@ -125,7 +125,7 @@ class MangaOwl : ParsedHttpSource() {
private fun parseChapterDate(string: String): Long { private fun parseChapterDate(string: String): Long {
return try { return try {
dateFormat.parse(string).time dateFormat.parse(string)?.time ?: 0
} catch (_: ParseException) { } catch (_: ParseException) {
0 0
} }