Skip to content

Conversation

fpammer
Copy link

@fpammer fpammer commented Sep 1, 2025

I recently started reading a lot with KOReader and noticed that the Reading Progress was constantly off by one page. This lead to chapters not being marked as read correctly and resuming a chapter would start at the wrong page.

It seems that after a quick glance the OPDS-PS spec defines the page number as starting at 0 but it seems internally and especially for page counts Kavita seems to assume 1 as start index.

I tested the change with KOReader and it seems to fix the issue. Potential misbehavior is probably also limited since there are sanity checks and clamping of values in the SaveReadingProgress function.

@majora2007
Copy link
Member

I'll take a look at this and validate it against Panels and Libera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants