Oglaf - change empty observable (#2536)

* Oglaf - change empty observable

* gradle
This commit is contained in:
Mike 2020-03-29 07:41:11 -04:00 committed by GitHub
parent 778c63a412
commit e3b870a1db
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 {
appName = 'Tachiyomi: Oglaf'
pkgNameSuffix = 'en.oglaf'
extClass = '.Oglaf'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -33,9 +33,9 @@ class Oglaf : ParsedHttpSource() {
return Observable.just(MangasPage(arrayListOf(manga), false))
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.just(MangasPage(emptyList(), false))
override fun fetchMangaDetails(manga: SManga) = Observable.just(manga)
override fun fetchMangaDetails(manga: SManga): Observable<SManga> = Observable.just(manga)
override fun chapterListParse(response: Response): List<SChapter> {
val chapterList = super.chapterListParse(response).distinct()