Find chapter based on the url
This commit is contained in:
parent
0a790c3c25
commit
326dc27009
@ -472,7 +472,7 @@ class FullBackupManager(val context: Context) : AbstractBackupManager() {
|
||||
val dbChapters = databaseHelper.getChapters(manga).executeAsBlocking()
|
||||
|
||||
for (chapter in chapters) {
|
||||
val pos = dbChapters.indexOf(chapter)
|
||||
val pos = dbChapters.indexOfFirst { it.url == chapter.url }
|
||||
if (pos != -1) {
|
||||
val dbChapter = dbChapters[pos]
|
||||
chapter.id = dbChapter.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user