Find chapter based on the url

This commit is contained in:
Jobobby04 2020-10-14 13:05:52 -04:00
parent 0a790c3c25
commit 326dc27009

View File

@ -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