Skip to content

Added support for .cbr, .cbt and .cb7 - #56

Open
Protected wants to merge 2 commits into
johnfactotum:mainfrom
Protected:cbr
Open

Protected wants to merge 2 commits into
johnfactotum:mainfrom
Protected:cbr

Conversation

@Protected

@Protected Protected commented Apr 29, 2025

Copy link
Copy Markdown
Contributor

Uses nika-begiashvili/libarchivejs which makes uses of WASM and workers, and outwardly seems to support random access. However, while ZIP is also supported, I don't have time right now to run the performance tests to check whether this solution is a suitable replacement for the previously existing ZIP library, so I left that in.

I tested and confirmed support for the following formats:

  • cbr with rar v5
  • cbr with legacy rar
  • cbr with rar in storage mode (uncompressed)
  • cbt with uncompressed tar
  • cb7 (note: slow compared to all other formats)

@johnfactotum

Copy link
Copy Markdown
Owner

IIRC libarchive does not do random access. It's mainly for streaming, I think.

Also it would be better if the files could be built from NPM, like the other vendored libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants