feat(media): extract archive downloads on import and handle missing root folder - #102
Open
Josh-Archer wants to merge 2 commits into
Open
feat(media): extract archive downloads on import and handle missing root folder#102Josh-Archer wants to merge 2 commits into
Josh-Archer wants to merge 2 commits into
Conversation
…import when no media files are found
…tFolderNotFoundException
Josh-Archer
force-pushed
the
feat/import-archive-extraction
branch
from
August 29, 2026 21:43
1c62792 to
dc2c402
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR enhances download import resilience with archive auto-extraction and robust missing root folder handling:
.zip,.tgz,.tar.gz). During completed download processing inDownloadedBooksImportService, if no loose media files exist in the downloaded folder, Chaptarr now automatically extracts supported archives into the directory usingIArchiveServicebefore proceeding with file matching and import.UpgradeMediaFileService, when upgrading an existing book file, a missing or unresolvable root folder previously resulted in aNullReferenceExceptioncrash. This is now caught early and throws a typedRootFolderNotFoundExceptionwith clear diagnostic logs.Database Migration
NO
How was this tested?
DownloadedBooksImportServiceFixtureverifying archive extraction when direct media files are missing.UpgradeMediaFileServiceFixtureverifying thatRootFolderNotFoundExceptionis cleanly thrown on missing root folder paths.Highlights & Assumptions
IArchiveService(SharpZipLib) already registered in DI.RootFolderNotFoundExceptionerror handling.ArchiveServicecapabilities (.zip,.tgz,.tar.gz).AI Disclosure & Workflow Sharing