Remove old backup code I tried for dummy restore
This commit is contained in:
parent
024a39d06b
commit
b850a8729f
@ -345,17 +345,7 @@ class LegacyBackupManager(context: Context, version: Int = CURRENT_VERSION) : Ab
|
|||||||
} else {
|
} else {
|
||||||
source.fetchChapterList(manga)
|
source.fetchChapterList(manga)
|
||||||
}
|
}
|
||||||
).map {
|
).map { syncChaptersWithSource(databaseHelper, it, manga, source) }
|
||||||
if (it.last().chapter_number == -99F) {
|
|
||||||
chapters.forEach { chapter ->
|
|
||||||
chapter.name =
|
|
||||||
"Chapter ${chapter.chapter_number} restored by dummy source"
|
|
||||||
}
|
|
||||||
syncChaptersWithSource(databaseHelper, chapters, manga, source)
|
|
||||||
} else {
|
|
||||||
syncChaptersWithSource(databaseHelper, it, manga, source)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// SY <--
|
// SY <--
|
||||||
.doOnNext { pair ->
|
.doOnNext { pair ->
|
||||||
if (pair.first.isNotEmpty()) {
|
if (pair.first.isNotEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user