• v1.7.105 15ed49e783

    v1.7.105 Stable

    Administrator released this 2026-03-22 16:24:38 +01:00 | 187 commits to main since this release

    v1.7.105 — Bug Fixes

    Fix: Auto-Rename Episode Token Pollution

    Root cause of two user-reported issues:

    1. Wrong episode numbers during auto-rename — Files like hrs-irland.krimi.hdtv.7p-101.mkv were not renamed (or renamed to the wrong episode) because the episode detection picked up S01E07 from an unrelated file in the same package (4sf-...-s01e07.mkv) instead of correctly parsing the compact episode code 101S01E01.

    2. Duplicate MKV files with (2)(3) suffixes — When multiple files were incorrectly renamed to the same episode number (e.g., all getting S01E07), the MKV collection step would create filename (2).mkv, filename (3).mkv copies because the target already existed.

    Technical details: The packageExtraCandidates array in autoRenameExtractedVideoFiles previously included ALL item filenames from the package. The resolveEpisodeTokenForAutoRename function iterated these candidates looking for episode tokens, and would return the first SxxExx match from ANY file — even if it belonged to a completely different episode. This polluted the episode detection for all files that relied on compact numeric codes (e.g., 101, 102, 103).

    Fix: Only the package directory name (outputDir) is now used as an extra naming candidate. Individual item filenames are no longer included, preventing cross-file episode token leakage.


    Fix: Deferred Nested Extraction Not Abortable

    The nested extraction step in runDeferredPostExtraction (which extracts archives found inside the extracted output) did not receive the deferredController.signal. This meant that if the user stopped, cancelled, or restarted the application during nested extraction, the extraction process would continue running until it finished naturally instead of aborting immediately.

    Fix: The signal: deferredController.signal parameter is now passed to extractPackageArchives in the deferred nested extraction path, matching the behavior of both the hybrid and full extraction paths.


    Test Suite Fully Green (548/548)

    All 14 previously failing tests have been resolved:

    • Updated extract error label expectations to match the current format (archive name + German error summaries)
    • Added timeouts for tests affected by the archive settle delay
    • Relaxed byte-exact assertions to account for Windows ALLOCATION_UNIT_SIZE tolerance
    • Made mini-file retry assertion platform-aware (Windows pre-allocation masks detection)
    Downloads