janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.53k stars 1.32k forks source link

Last page of converted epub's doesn't save on kobo sync. #3124

Open RossEm0174 opened 1 month ago

RossEm0174 commented 1 month ago

Describe the bug/problem

I just set up Kobo Sync on my Kobo eReader, and I really like it. I have it configured on a bookshelf in my Calibre Web installation. When I tried it out last night, I was really happy with how it worked. However today, when I wanted to continue reading, I tapped on the book, but it took me back to the first page (the title page, page 3).

I tested this with a few other books and found that only ebooks converted from PDF to EPUB (using the Calibre app on my local machine, connected to the database over a Samba share) do not save their last page data. Regular EPUB files, however, do save correctly.

To Reproduce

Steps to reproduce the behavior:

  1. Convert a pdf book to epub via local calibre installation connected to a Samba share.
  2. Sync Kobo so that converted book shows up on ereader
  3. go to a random page, close and reopen.

Logfile

Couldn't find anything relevant. But included it just in case. Calibre-Web-debug-pack.zip

Expected behavior

Save my last page so I can continue where I left off if I closed the book.

Environment (please complete the following information):

I setup the api-endpoint with a duckdns-link and port forwarding (yes, i know about the security risks)

troubleshooting

What I did to troubleshoot was:

OzzieIsaacs commented 1 month ago

Do you use epubs or kepubs? Because saving the exact position on the reader only works for kepubs. It‘s a limitation on the kobo side, so nothing (beside converting epubs to kepubs via kepubify) can be done in calibre-web

RossEm0174 commented 1 month ago

Do you use epubs or kepubs?

It gets converted to EPUB, and on my eReader, it shows as "Kobo EPUB." Again, normal EPUBs work just fine; it's just the converted ones that have this issue.

phampyk commented 3 weeks ago

Only kepubs, or what it shows as "kobo EPUB" would keep your reading position. There's calibre plugins that would convert to kepub automatically, and calibre web would send that one over epub or PDF.

In fact I see you are using the linuxserver container of calibre web, it comes with kepubify integrated, so it automatically converts to kepub your library

This image contains the kepubify ebook conversion tool (MIT License) to convert epub to kepub. In the Calibre-Web admin page (Basic Configuration:External Binaries) set the Path to Kepubify E-Book Converter to /usr/bin/kepubify

Somewhere in between seems like the already epubs get converted to kepub, but the ones you convert from PDF to epub are not. Just giving you a hint as to where to start troubleshooting