Allow custom parsing of chapter number on sources

This commit is contained in:
inorichi
2016-02-26 18:29:08 +01:00
parent f73f0cc341
commit d4bb092543
4 changed files with 12 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ public class ChaptersPresenter extends BasePresenter<ChaptersFragment> {
private Observable<Pair<Integer, Integer>> getOnlineChaptersObs() {
return source.pullChaptersFromNetwork(manga.url)
.subscribeOn(Schedulers.io())
.flatMap(chapters -> db.insertOrRemoveChapters(manga, chapters))
.flatMap(chapters -> db.insertOrRemoveChapters(manga, chapters, source))
.observeOn(AndroidSchedulers.mainThread());
}