• v1.6.66 18e4b6cd58

    v1.6.66 Stable

    Administrator released this 2026-03-05 17:32:42 +01:00 | 451 commits to main since this release

    Fix: Deferred post-extraction cleanup skipped after hybrid extraction

    When hybrid extraction completed all archives during download, extractedCount stayed at 0 because the full extraction pass was skipped. This caused ALL deferred cleanup steps in runDeferredPostExtraction to be bypassed:

    • Archive cleanup: source RAR/ZIP files remained in the download directory (Downloader Unfertig) instead of being deleted
    • Resume state cleanup: .rd_extract_progress_*.json marker files were not deleted
    • Link artifact removal: promotional .url/.lnk/.txt files from archives were not cleaned up
    • Sample artifact removal: sample video files and folders were not removed
    • Empty directory removal: empty download folders were not pruned after archive deletion
    • Auto-rename: extracted video files were not reliably renamed (hybrid used fire-and-forget only)
    • Nested extraction: archives-inside-archives were not checked for further extraction

    Root Cause

    All cleanup conditions in runDeferredPostExtraction checked only extractedCount > 0. When hybrid extraction already handled everything, alreadyMarkedExtracted was true but extractedCount remained 0 (full extraction was skipped entirely).

    Fix

    Extended all deferred cleanup conditions from extractedCount > 0 to (extractedCount > 0 || alreadyMarkedExtracted) so cleanup runs regardless of which extraction path was taken.

    Downloads