Skip to content

Improve extraction and processing of incoming archives#763

Merged
dnzbk merged 1 commit intodevelopfrom
fix/archived-nzb
Mar 28, 2026
Merged

Improve extraction and processing of incoming archives#763
dnzbk merged 1 commit intodevelopfrom
fix/archived-nzb

Conversation

@dnzbk
Copy link
Copy Markdown
Collaborator

@dnzbk dnzbk commented Mar 20, 2026

Description

  • Added the new NzbDirArchiveScan option to toggle the feature, and NzbDirArchiveAction option to decide if the original archive should be deleted or moved to a _processed folder when done.
  • Sandbox Extraction: Archives are extracted to a temporary _unpack directory. Valid .nzb files are filtered and moved to the active directory for queuing.
  • Data Loss Prevention: If an archive contains files other than .nzb, the system refuses to delete it (even if set to delete) and instead moves it to the _processed folder. Failed extractions are moved to _broken.
  • Robust File Operations: Added cross-device file move utilities and collision-free unique file naming (e.g., archive(1).zip);
  • Refactored logic to more stable error-handling approach and added extra logging

Testing

  • macOS Tahoe/Mojave
  • Windows 7,10
  • Docker

@dnzbk dnzbk marked this pull request as draft March 20, 2026 10:21
@dnzbk dnzbk linked an issue Mar 20, 2026 that may be closed by this pull request
1 task
@dnzbk dnzbk force-pushed the fix/archived-nzb branch 2 times, most recently from 51f1b50 to cbabdae Compare March 20, 2026 13:48
@dnzbk dnzbk requested a review from luckedea March 20, 2026 15:44
@dnzbk dnzbk force-pushed the fix/archived-nzb branch 3 times, most recently from 2837692 to 7bea2e0 Compare March 24, 2026 09:21
@dnzbk dnzbk marked this pull request as ready for review March 27, 2026 05:03
@dnzbk dnzbk force-pushed the fix/archived-nzb branch from 0bdb8d0 to 2828915 Compare March 27, 2026 14:42
@dnzbk dnzbk force-pushed the fix/archived-nzb branch from 2828915 to f122ab8 Compare March 27, 2026 15:01
@dnzbk dnzbk merged commit 9ddc86f into develop Mar 28, 2026
46 checks passed
@dnzbk dnzbk deleted the fix/archived-nzb branch March 28, 2026 07:20
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.

Compressed nzb support has an unintended side-effect on update?

2 participants