MangaOwl - fix search (#4178)
This commit is contained in:
parent
c748daf66e
commit
2bf68d25f3
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'MangaOwl'
|
||||
pkgNameSuffix = 'en.mangaowl'
|
||||
extClass = '.MangaOwl'
|
||||
extVersionCode = 6
|
||||
extVersionCode = 7
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class MangaOwl : ParsedHttpSource() {
|
|||
// Search
|
||||
|
||||
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()
|
||||
|
@ -125,7 +125,7 @@ class MangaOwl : ParsedHttpSource() {
|
|||
|
||||
private fun parseChapterDate(string: String): Long {
|
||||
return try {
|
||||
dateFormat.parse(string).time
|
||||
dateFormat.parse(string)?.time ?: 0
|
||||
} catch (_: ParseException) {
|
||||
0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue