Skip to content

Fix reversed volume order and warnings about finished series - #8

Merged
HalRiveria merged 1 commit into
mainfrom
fix/volume-order-and-skip-warnings
Dec 1, 2026
Merged

HalRiveria merged 1 commit into
mainfrom
fix/volume-order-and-skip-warnings

Conversation

@HalRiveria-Bot

Copy link
Copy Markdown
Collaborator

Two fixes in the folder scan.

Volumes inside a series were listed in reverse by the scan Full Pipeline, Image Conversion and Animated Conversion use. It kept the last-in, first-out folder stack that was already fixed for Zip Folders. It now walks folders the same way: one open enumerator per level, each subfolder to its end before the next. The "hit an error partway through" warning names the folder in both scans now; the Zip Folders one had only said "a directory".

Re-running on a finished series logged a warning for it every time. A folder with a .zip directly in it and no page images is a series whose chapters are all zipped, which is normal, so the message is now at Info level. It stays a warning when page images sit next to the .zip, since those won't be zipped. Zip Folders' "no qualifying leaf directories found" is now Info too. A re-run with nothing to do no longer creates a Warnings log.

Tests:

  • New order checks for the batch scan and for a series' chapters, and level checks for a finished series, a finished series with a cover, and loose pages next to a .zip. New Zip Folders check that a finished series adds nothing to the Warnings log. Six assertions failed before and pass now; the rest guard existing behavior.
  • All harnesses pass on Windows PowerShell 5.1. The two changed modules' harnesses also pass on PowerShell 7.
  • Ran the real Zip Folders twice on a small copied library: zips were made in order, and neither run left a log file. Before, the second run logged a warning per series.

🤖 Generated with Claude Code

…d series

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HalRiveria
HalRiveria merged commit dd945f2 into main Dec 1, 2026
1 check passed
@HalRiveria
HalRiveria deleted the fix/volume-order-and-skip-warnings branch December 1, 2026 02:42
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