Remove usages of Observable.empty() (#3479)
This commit is contained in:
parent
1ad4002be9
commit
3fa06f5eba
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Existential Comics'
|
||||
pkgNameSuffix = 'en.existentialcomics'
|
||||
extClass = '.ExistentialComics'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ class ExistentialComics : 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)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Gunnerkrigg Court'
|
||||
pkgNameSuffix = 'en.gunnerkriggcourt'
|
||||
extClass = '.GunnerkriggCourt'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ class GunnerkriggCourt : ParsedHttpSource() {
|
|||
return Observable.just(MangasPage(arrayListOf(manga).reversed(), 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<SManga> {
|
||||
return Observable.just(manga)
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Questionable Content'
|
||||
pkgNameSuffix = 'en.questionablecontent'
|
||||
extClass = '.QuestionableContent'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ class QuestionableContent : 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)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: xkcd'
|
||||
pkgNameSuffix = 'en.xkcd'
|
||||
extClass = '.Xkcd'
|
||||
extVersionCode = 7
|
||||
extVersionCode = 8
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ class Xkcd : 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<SManga> = fetchPopularManga(1)
|
||||
.map { it.mangas.first().apply { initialized = true } }
|
||||
|
|
Loading…
Reference in New Issue