mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-24 18:08:24 +01:00
Fix bug with update lib and parse chapters (#1927)
* Fix bug with update lib and parse chapters * Fix else condition
This commit is contained in:
parent
08cdac968d
commit
dbe8f3cfbe
@ -51,7 +51,12 @@ fun syncChaptersWithSource(db: DatabaseHelper,
|
|||||||
toAdd.add(sourceChapter)
|
toAdd.add(sourceChapter)
|
||||||
} else {
|
} else {
|
||||||
//this forces metadata update for the main viewable things in the chapter list
|
//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)
|
ChapterRecognition.parseChapterNumber(sourceChapter, manga)
|
||||||
|
|
||||||
if (shouldUpdateDbChapter(dbChapter, sourceChapter)) {
|
if (shouldUpdateDbChapter(dbChapter, sourceChapter)) {
|
||||||
dbChapter.scanlator = sourceChapter.scanlator
|
dbChapter.scanlator = sourceChapter.scanlator
|
||||||
dbChapter.name = sourceChapter.name
|
dbChapter.name = sourceChapter.name
|
||||||
|
Loading…
Reference in New Issue
Block a user