From c69b25ff0df5d241588c68d490bb4b598e504a6d Mon Sep 17 00:00:00 2001 From: Safihre Date: Wed, 29 Sep 2021 08:17:42 +0200 Subject: [PATCH] Only run process_unpacked_par2 when cleanup happened Relates to https://forums.sabnzbd.org/viewtopic.php?f=1&t=25552 --- sabnzbd/postproc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sabnzbd/postproc.py b/sabnzbd/postproc.py index 60d62ab..a2855d7 100644 --- a/sabnzbd/postproc.py +++ b/sabnzbd/postproc.py @@ -520,7 +520,8 @@ def process_job(nzo: NzbObject): # Run further post-processing if (all_ok or not cfg.safe_postproc()) and not nzb_list: # Use par2 files to deobfuscate unpacked file names - if cfg.process_unpacked_par2(): + # Only if we also run cleanup, so not to process the "regular" par2 files + if flag_delete and cfg.process_unpacked_par2(): newfiles = deobfuscate.recover_par2_names(newfiles) if cfg.deobfuscate_final_filenames():