Feature: Sync reading progress from Kobo in-built reader (#1541)

* feat: add kobo reading progress sync

* fix: remove old variable references

* fix: avoid changing koreader behaviour

* fix: resolve typo in koreader progress

* fix: remove link between booklore progress and kobo sync progress

* feat: add unit tests for kobo reading status sync

* fix: remove unnecessary conversion value for kobo progress

* fix: resolve issue with kobo_progress beiong optional in template

* fix: update entitlement to provide existing reading progress back to kobo on sync

* fix: use stored bookmark before creating new bookmark

* fix: update default thresholds to full numbers. kobo doesn't report progress with any decimal places

* chore: update unit tests

* fix: remove decimal places in kobo settings progress threshold
This commit is contained in:
CounterClops
2025-11-21 00:17:57 -07:00
committed by GitHub
parent 9eb0dabd5e
commit 7ebdc7b106
20 changed files with 937 additions and 9 deletions
@@ -37,6 +37,7 @@ export interface Book extends FileInfo {
pdfProgress?: PdfProgress;
cbxProgress?: CbxProgress;
koreaderProgress?: KoReaderProgress;
koboProgress?: KoboProgress;
seriesCount?: number | null;
metadataMatchScore?: number | null;
readStatus?: ReadStatus;
@@ -65,6 +66,10 @@ export interface KoReaderProgress {
percentage: number;
}
export interface KoboProgress {
percentage: number;
}
export interface BookMetadata {
bookId: number;
title?: string;