fix export chapter ordering, include new props in backup

This commit is contained in:
Aria Moradi
2021-10-10 20:53:50 +03:30
parent e9b764b63c
commit b154ff2f9d
2 changed files with 7 additions and 3 deletions
@@ -68,7 +68,7 @@ object ProtoBackupExport : ProtoBackupBase() {
mangaRow[MangaTable.genre]?.split(", ") ?: emptyList(),
MangaStatus.valueOf(mangaRow[MangaTable.status]).value,
mangaRow[MangaTable.thumbnail_url],
0, // not supported in Tachidesk
mangaRow[MangaTable.inLibraryAt],
0, // not supported in Tachidesk
)
@@ -84,10 +84,10 @@ object ProtoBackupExport : ProtoBackupBase() {
it.read,
it.bookmarked,
it.lastPageRead,
0, // not supported in Tachidesk
it.fetchedAt,
it.uploadDate,
it.chapterNumber,
it.index,
chapters.size - it.index,
)
}
}
@@ -148,6 +148,8 @@ object ProtoBackupImport : ProtoBackupBase() {
it[initialized] = manga.description != null
it[inLibrary] = manga.favorite
it[inLibraryAt] = manga.date_added
}.value
// insert chapter data
@@ -166,6 +168,8 @@ object ProtoBackupImport : ProtoBackupBase() {
it[isRead] = chapter.read
it[lastPageRead] = chapter.last_page_read
it[isBookmarked] = chapter.bookmark
it[fetchedAt] = chapter.date_fetch
}
}