Clone Manga - enable search (#3481)
This commit is contained in:
parent
6202a42260
commit
1d606bca42
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Clone Manga'
|
||||
pkgNameSuffix = 'en.clonemanga'
|
||||
extClass = '.CloneManga'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -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") }
|
||||
|
|
Loading…
Reference in New Issue