Mobileread
KOReader and Calibre OPDS file formats
#1  twowheels 11-20-2020, 01:44 PM
Well, that's embarrassing. After writing this long post it just started working w/o me doing anything... no idea why it only offered me AZW3 the dozen or so times that I tried before... :/ So, now I have a new question, which is probably a big stretch, and probably not possible...

Is there any way to remotely trigger Calibre to do a conversion on the fly when making an OPDS request?


~~~~~ OLD QUESTION ~~~~~

Not sure if this is a Calibre question, KOReader question, or limitation of the OPDS protocol, but thought that I'd start here.


When connecting to the Calibre OPDS server from KOReader and select a book from my library that has more than one format, I'm not offered an option to select the format. The book that I want to download now was purchased from Amazon, so it's in azw3 format, but KOReader apparently doesn't support that, so I converted to epub, but the OPDS interface only offers me the single file format to download.

Thanks!
Reply 

#2  NiLuJe 11-20-2020, 01:53 PM
There's a button for each supported format in the download popup.

AZW3 *should* be in there, it's certainly in the list, unless the mime type went crazy and nobody noticed because azw3 ;p.

EDIT: Yup, worksforme.
Reply 

#3  NiLuJe 11-20-2020, 01:56 PM
And to answer the new question: not that I know of, it's essentially a snapshot of the db at a fixed state (i.e., think of it as a frontend to a static fileserver).

A Calibre smart device connection *will* handle that, though, but you need to be able to interact with the host Calibre's GUI to initiate the transfer.
Reply 

#4  twowheels 11-20-2020, 02:09 PM
Quote NiLuJe
There's a button for each supported format in the download popup.

AZW3 *should* be in there, it's certainly in the list, unless the mime type went crazy and nobody noticed because azw3 ;p.

EDIT: Yup, worksforme.
Yeah, it's working as you described now. For some reason I was only getting one button for a long time, after multiple attempts. Strange.
Reply 

#5  NiLuJe 11-20-2020, 05:43 PM
There may be some caching shenanigans at play. Or... something ^^.

That codepath mostly works, but is not particularly robust (I tend to find giant gaping bugs in the very first thing I check every time someone asks something about it ;p).
Reply 

#6  twowheels 11-20-2020, 06:28 PM
I know how that feels!

I've been trying to familiarize myself with the codebase and have been reading the github diffs to see what's changing, hoping to start contributing some time in the future, though my normal day job and other hobbies keep me so busy that I don't really have much time, so no promises.
Reply 

Today's Posts | Search this Thread | Login | Register