Clone Manga - enable search (#3481)

This commit is contained in:
Mike 2020-06-10 17:09:23 -04:00 committed by GitHub
parent 6202a42260
commit 1d606bca42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Clone Manga'
pkgNameSuffix = 'en.clonemanga'
extClass = '.CloneManga'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -52,6 +52,9 @@ class CloneManga : ParsedHttpSource() {
}
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = fetchPopularManga(1)
.map { mp -> MangasPage(mp.mangas.filter { it.title.contains(query, ignoreCase = true) }, false) }
override fun mangaDetailsParse(document: Document): SManga {
// Populate with already fetched details
return SManga.create()
@ -92,11 +95,6 @@ class CloneManga : ParsedHttpSource() {
return listOf(Page(1, "", imgAbsoluteUrl))
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList):
Observable<MangasPage> {
return Observable.empty()
}
override fun imageUrlParse(document: Document): String { throw Exception("Not used") }
override fun pageListParse(document: Document): List<Page> { throw Exception("Not used") }