瀏覽代碼

Fix bug with update lib and parse chapters (#1927)

* Fix bug with update lib and parse chapters

* Fix else condition
Pavka 6 年之前
父節點
當前提交
dbe8f3cfbe
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt

+ 5 - 0
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