janeczku / calibre-web

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

On-the-fly conversion for Send to Kindle and Kobo sync #1488

Open flying-sausages opened 4 years ago

flying-sausages commented 4 years ago

Is your feature request related to a problem? Please describe. Currently, there are issues with Kobo Sync not necessarily serving up the kepub when an epub is present (#1439), and from what I gather, books need to be in either azw3 or mobi format in order to be sent to a Kindle. This means that a bunch of manual steps are needed before books can arrive on a reader.

Describe the solution you'd like It would be nice to have the necessary conversions done for the platform at hand, when the sync/sending is being performed. This would alleviate users from having to resort to manually creating the right versions of their books en-masse which is currently only really possible through Calibre, and a lot of confusion about why books behave in odd ways even though the format is "correct" on the surface.

Describe alternatives you've considered

Additional context Converting large books might be an issue with the Kobo Sync as it might time out, however I have not tested this in any way.

LordSushiPhoenix commented 4 years ago

If converting large books ends up making the sync time out, maybe calibre-web could automatically run kepubify when new books are added if kobo sync is enabled? Then when syncing it would need to prefer the kepub over the original epub.

Even just syncing kepub instead of original epub if kepub is available seems acceptable to me.

flying-sausages commented 4 years ago

If converting large books ends up making the sync time out, maybe calibre-web could automatically run kepubify when new books are added if kobo sync is enabled? Then when syncing it would need to prefer the kepub over the original epub.

Even just syncing kepub instead of original epub if kepub is available seems acceptable to me.

That might be undesirable with large libraries. Also, that would be a bit annoying to handle for books added through calibredb add as the library will then have to be monitored for that. I would accept that as a solution too I suppose.

flying-sausages commented 4 years ago

I'm actually not sure if this should be a bug or not as the README.md mentions this should be functional, however in the case of kobo it is not.

Optionally, to enable on-the-fly conversion from one ebook format to another when using the send-to-kindle feature, or during editing of ebooks metadata:

Download and install the Calibre desktop program for your platform and enter the folder including program name (normally /opt/calibre/ebook-convert, or C:\Program Files\calibre\ebook-convert.exe) in the field "calibre's converter tool" on the setup page.

Download Kepubify tool for your platform and place the binary starting with kepubify in Linux: \opt\kepubify Windows: C:\Program Files\kepubify.

flying-sausages commented 4 years ago

when using the send-to-kindle feature

I see this is mentioned for only send to kindle, my bad. It would be nice if this were the case.