From dbe8f3cfbee3b91ef5e8760c782aeb1beef5d1fc Mon Sep 17 00:00:00 2001 From: Pavka Date: Mon, 25 Mar 2019 16:53:17 +0300 Subject: [PATCH] Fix bug with update lib and parse chapters (#1927) * Fix bug with update lib and parse chapters * Fix else condition --- .../main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt index 18799f178..60aff194a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt @@ -51,7 +51,12 @@ fun syncChaptersWithSource(db: DatabaseHelper, toAdd.add(sourceChapter) } else { //this forces metadata update for the main viewable things in the chapter list + if (source is HttpSource) { + source.prepareNewChapter(sourceChapter, manga) + } + ChapterRecognition.parseChapterNumber(sourceChapter, manga) + if (shouldUpdateDbChapter(dbChapter, sourceChapter)) { dbChapter.scanlator = sourceChapter.scanlator dbChapter.name = sourceChapter.name