kiwix-js icon indicating copy to clipboard operation
kiwix-js copied to clipboard

Support OPDS

Open kelson42 opened this issue 6 years ago • 6 comments

OPDS is the new way to deliver the ZIM catalog. See https://wiki.kiwix.org/wiki/OPDS Would that be possible to support OPDS in Kiwix JS?

kelson42 avatar Apr 25 '19 11:04 kelson42

@kelson42 Three questions about this (related to Kiwix JS Windows, which has an implementation of a download library):

  1. Are there plans to deprecate direct browsing of http://download.kiwix.org/zim/ for directories and filenames? I currently scrape those indices for filenames in Kiwix JS Windows. Not the right way, I know... NB I get the download links from the .meta4 file, so users of the app have a choice of mirrors.

  2. Currently I can get the torrent for a given ZIM by adding .torrent instead of .meta4 on the filename, and this works. Can I still rely on that?

  3. Have all "split" versions of ZIM files been deprecated (*.zimaa *.zimbb etc.)? There are now only quite old files in http://download.kiwix.org/zim/portable/. If so, I should remove my "portable" links.

I know the right way is to query the catalog, but it may take some time to develop...

Jaifroid avatar Apr 25 '19 12:04 Jaifroid

1. Are there plans to deprecate direct browsing of `http://download.kiwix.org/zim/` for directories and filenames? I currently scrape those indices for filenames in Kiwix JS Windows. Not the right way, I know... _NB I get the download links from the `.meta4` file, so users of the app have a choice of mirrors._

No

2. Currently I can get the torrent for a given ZIM by adding `.torrent` instead of `.meta4` on the filename, and this works. Can I still rely on that?

Yes

3. Have all "split" versions of ZIM files been deprecated (*.zimaa *.zimbb etc.)? There are now only quite old files in `http://download.kiwix.org/zim/portable/`. If so, I should remove my "portable" links.

Yes

kelson42 avatar Apr 25 '19 12:04 kelson42

Listing and downloading ZIM files from the app is currently not implemented in kiwix-js. We simply point to https://download.kiwix.org/zim/. @Jaifroid has implemented some logic inside kiwix-js-windows (without OPDS)

mossroy avatar Apr 28 '19 14:04 mossroy

The OPDS stream has been strongly developed and as soon as libkiwix10 is release (in a few days) should be considered ready to use. A pure OPDS reader is now available in kiwix serve welcome page.

kelson42 avatar Aug 22 '21 06:08 kelson42

@kelson42 Is the pure OPDS reader implemented in JS, do you know?

Jaifroid avatar Aug 22 '21 07:08 Jaifroid

@Jaifroid yes, you can try it by downloading a nightly build of kiwix-serve. The js code is in the libkiwix for the moment. I'm perfectly aware that such a piece of software/js library would benefit to many of our solutions and therefore if your are happy with it we could/should consider to isolate it to simplify maintenance/integration.

kelson42 avatar Aug 22 '21 07:08 kelson42