edrlab / thorium-reader

A cross platform desktop reading app, based on the Readium Desktop toolkit
https://www.edrlab.org/software/thorium-reader/
BSD 3-Clause "New" or "Revised" License
1.85k stars 157 forks source link

feature: OPDS browser support for "registry" feeds (JSON feed syntax with `catalogs` property / object key) #2005

Open danielweck opened 1 year ago

danielweck commented 1 year ago
danielweck commented 1 year ago
Screenshot 2023-09-22 at 11 35 02
panaC commented 1 year ago

implemented in thorium under the shell ENV variable : THORIUM_OPDS_CATALOGS_URL. It import all feeds in catalogs property at thorium start.

https://github.com/edrlab/thorium-reader/blob/b2b41b6c03393f2f43660b81ca8ca24d02f264a8/src/main/redux/sagas/app.ts#L202-L219 https://github.com/edrlab/thorium-reader/blob/b2b41b6c03393f2f43660b81ca8ca24d02f264a8/src/main/redux/sagas/event.ts#L144-L196

panaC commented 6 months ago

server failed to parse both opds feed : ex: https://streamer.edrlab.org/opds-v1-v2-convert/https%3A%2F%2Flibraries.aldiko.com%2Fhome.json

danielweck commented 6 months ago

@panaC the correct URLs are:

https://streamer.edrlab.org/opds-v2-browse/https%3A%2F%2Flibraryregistry.librarysimplified.org%2Flibraries

https://streamer.edrlab.org/opds-v2-browse/http%3A%2F%2Flibraries.aldiko.com%2Fhome.json

panaC commented 6 months ago

yes, my bad