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:
+12
@@ -0,0 +1,12 @@
|
||||
-- Add Kobo progress tracking columns to user_book_progress table
|
||||
ALTER TABLE user_book_progress
|
||||
ADD COLUMN IF NOT EXISTS kobo_progress_percent FLOAT,
|
||||
ADD COLUMN IF NOT EXISTS kobo_location VARCHAR(1000),
|
||||
ADD COLUMN IF NOT EXISTS kobo_location_type VARCHAR(50),
|
||||
ADD COLUMN IF NOT EXISTS kobo_location_source VARCHAR(50),
|
||||
ADD COLUMN IF NOT EXISTS kobo_last_sync_time TIMESTAMP;
|
||||
|
||||
-- Add configurable progress thresholds to kobo_user_settings table
|
||||
ALTER TABLE kobo_user_settings
|
||||
ADD COLUMN IF NOT EXISTS progress_mark_as_reading_threshold FLOAT DEFAULT 1,
|
||||
ADD COLUMN IF NOT EXISTS progress_mark_as_finished_threshold FLOAT DEFAULT 99;
|
||||
Reference in New Issue
Block a user