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(),
|
mangaRow[MangaTable.genre]?.split(", ") ?: emptyList(),
|
||||||
MangaStatus.valueOf(mangaRow[MangaTable.status]).value,
|
MangaStatus.valueOf(mangaRow[MangaTable.status]).value,
|
||||||
mangaRow[MangaTable.thumbnail_url],
|
mangaRow[MangaTable.thumbnail_url],
|
||||||
0, // not supported in Tachidesk
|
mangaRow[MangaTable.inLibraryAt],
|
||||||
0, // not supported in Tachidesk
|
0, // not supported in Tachidesk
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -84,10 +84,10 @@ object ProtoBackupExport : ProtoBackupBase() {
|
|||||||
it.read,
|
it.read,
|
||||||
it.bookmarked,
|
it.bookmarked,
|
||||||
it.lastPageRead,
|
it.lastPageRead,
|
||||||
0, // not supported in Tachidesk
|
it.fetchedAt,
|
||||||
it.uploadDate,
|
it.uploadDate,
|
||||||
it.chapterNumber,
|
it.chapterNumber,
|
||||||
it.index,
|
chapters.size - it.index,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,6 +148,8 @@ object ProtoBackupImport : ProtoBackupBase() {
|
|||||||
it[initialized] = manga.description != null
|
it[initialized] = manga.description != null
|
||||||
|
|
||||||
it[inLibrary] = manga.favorite
|
it[inLibrary] = manga.favorite
|
||||||
|
|
||||||
|
it[inLibraryAt] = manga.date_added
|
||||||
}.value
|
}.value
|
||||||
|
|
||||||
// insert chapter data
|
// insert chapter data
|
||||||
@@ -166,6 +168,8 @@ object ProtoBackupImport : ProtoBackupBase() {
|
|||||||
it[isRead] = chapter.read
|
it[isRead] = chapter.read
|
||||||
it[lastPageRead] = chapter.last_page_read
|
it[lastPageRead] = chapter.last_page_read
|
||||||
it[isBookmarked] = chapter.bookmark
|
it[isBookmarked] = chapter.bookmark
|
||||||
|
|
||||||
|
it[fetchedAt] = chapter.date_fetch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user