kiwix / kiwix-js-pwa

Kiwix JS Offline Browser implemented as a Progressive Web App (PWA), and packaged as Electron, NWJS and UWP apps for Windows and Linux.
https://pwa.kiwix.org
GNU General Public License v3.0
177 stars 29 forks source link

Add a way to detect that an archive is zimit2 #537

Closed Jaifroid closed 7 months ago

Jaifroid commented 7 months ago

Fixes one of the bullet points in #536.

Jaifroid commented 7 months ago

It works like this:

  1. Assume all archives are 'open' as a baseline
  2. If we find warc-headers, it must be zimit classic (this is true currently, but might not be true in the future)
  3. If we don't find warc-headers, but the archive was scraped by warc2zim, then it must be zimit2