Skip to content

Feature Request: Configurable value for nested RAR levels to extract / Issue: CRC errors on nested RAR sets #104

@piefke84

Description

@piefke84

First of all, this is an amazing piece of software, I am very impressed by the speed given the different layers required to make it all work... Great work!

I guess I have a slightly different use case than most other users. I have a collection of NZB files that I want to access via AltMount (e.g. for ease of access and to copy single files). These NZB files come in two flavors:

  1. NZB is obfuscated by a passworded RAR archive and should be unpacked before mounting. The password-protected RARs may contain another nested RAR set which should not be unpacked (e.g. I want to be able to access the actual RAR files within the password-protected RAR set).
  2. NZB contains the data I would like to access directly (e.g. not obfuscated by a passworded RAR archive), no unpacking required at all

For NZB type 1, AltMount works fine and displays the content of the password-protected RAR archive as expected. However, I noticed the following:

  1. All files inside the password-protected RAR are displayed in the root level. Any subdirs within the RARs are not preserved (e.g. MyContentInTheRar/Subdir/file.txt is displayed as MyContentInTheRar/file.txt)
  2. If the password-protected RAR set contains a nested RAR set, the files are displayed correctly (e.g. no nested unpacking). Some files however fail checksum checks (CRC32/SFV). This does only affect the last RAR file of the nested RAR sets (e.g. rar->r18, r18 will be broken). I did compare the correct file (manually downloaded from the NZB) and the file presented by AltMount. The AltMount file does contain a few bytes of extra data at the file end (approx. 10 bytes, but varies). See screenshots below.

Correct file (last bytes highlighted):
Image

Corrupt file (same bytes highlighted, note the extra bytes at the end):
Image

For NZB type 2, AltMount extracts the RAR content and displays the content of the RAR set (which is intended, but not suitable for my use case).

It would be great to have the following features/fixes:

Have a configurable value for RAR levels to extract:

-0: Display NZB content as is, no extraction at all
-1: Extract first level RAR set, display content as is (even if it contains a nested RAR set)
-2: Extract RAR sets included in the obfuscated RAR set
This would allow flexibility on what to display from the imported NZBs. It would be preferred to be able to configure this per imported NZB (for example when using the "Queue" page to import NZBs).

Find root cause of the extra bytes on a nested RAR set

I understand that the few extra bytes are not an issue for most use cases (e.g. using *arr stack integration with JellyFin for media files, etc.), however as explain in the paragraph above, it is a concern for my particular use case. I am happy to provide an example NZB for testing.

Preserve subdir structure within nested RAR set

A file MyContentInTheRar/Subdir/file.txt in a nested RAR set should be displayed as MyContentInTheRar/Subdir/file.txt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions