fix export chapter ordering, include new props in backup
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user