OPDS support
4 votes c/dokk Posted by zPlus — 4 votes, 6 commentsSource

I’ve just added support for OPDS at the DOKK library. This was a feature request by DustDFG, who also helped me write the source for implementing it.

OPDS is a standard, that allows OPDS clients to browse catalogs and download books locally. I’ve tested it with two readers, Foliate and Thorium (pics below). Unfortunately I didn’t have a lot of luck with Calibre; it’s got two plugins but none of them seem to work.

I have to admit that this is really cool! Even if I’m making the DOKK website as a friendly entry point for accessing the data, ultimately I really want people to reuse the database in their apps! So, watching it work like this is really amazing and it gives me a feeling of awe that I haven’t felt in quite some time!

Some links:

And some pictures:

What about current state? I see in the file only and the thorium is cursing

 urn:uuid:37a3bc53-cce9-47a2-b557-2c2d5b73d915 2024-01-09 14:59:16.755776+00:00 DOKK https://dokk.org 2024-01-09 14:59:16.755895+00:00 urn:uuid:1ad42a21-f98f-44a9-b37a-7c4496ab661d 2024-01-09 14:59:16.755980+00:00 urn:uuid:98d6aff1-0df9-4229-8c6e-2ab0ebece9e1 

Do you mean that it’s not working with Thorium? I might have broken something when converting the website from static to non-static.

Yeah IIRC OPDS is xml or json but not something like RDF that describes DOKK

If you open the link view-source:https://dokk.org/library/opds.xml with Firefox you see it’s xml.

Hmm, you are right… Didn’t think that Firefox will “render” opds. Anyway it say: Not a valid OPDS HTTP Content-Type for <link> (text/html). Maybe it should be text/xml but the server send it is with text/html header?

P.S I am glad to know that someone else knows about view-source:. I often use it on mobile devices cause they don’t have developer console ;)