Shqqaa - enable search (#3480)

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

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Shqqaa Manga'
pkgNameSuffix = 'ar.shqqaa'
extClass = '.Shqqaa'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -64,7 +64,8 @@ class Shqqaa : ParsedHttpSource() {
override fun latestUpdatesNextPageSelector(): String? = null
// Search
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
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 searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used")