From 4af4b9fb9d44d59ae1d9cf8c83ef1f004a7799cf Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Fri, 26 Mar 2021 16:25:22 -0400 Subject: [PATCH] Backing up pages left for chapters --- .../tachiyomi/data/backup/full/models/BackupChapter.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupChapter.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupChapter.kt index 05111123b9..33adaea8ba 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupChapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupChapter.kt @@ -21,6 +21,9 @@ data class BackupChapter( // chapterNumber is called number is 1.x @ProtoNumber(9) var chapterNumber: Float = 0F, @ProtoNumber(10) var sourceOrder: Int = 0, + + // J2K specific values + @ProtoNumber(800) var pagesLeft: Int = 0, ) { fun toChapterImpl(): ChapterImpl { return ChapterImpl().apply { @@ -34,6 +37,7 @@ data class BackupChapter( date_fetch = this@BackupChapter.dateFetch date_upload = this@BackupChapter.dateUpload source_order = this@BackupChapter.sourceOrder + pages_left = this@BackupChapter.pagesLeft } } @@ -49,7 +53,8 @@ data class BackupChapter( lastPageRead = chapter.last_page_read, dateFetch = chapter.date_fetch, dateUpload = chapter.date_upload, - sourceOrder = chapter.source_order + sourceOrder = chapter.source_order, + pagesLeft = chapter.pages_left ) } }