Browse Source

Only run process_unpacked_par2 when cleanup happened

Relates to https://forums.sabnzbd.org/viewtopic.php?f=1&t=25552
pull/1959/head
Safihre 4 years ago
parent
commit
c69b25ff0d
  1. 3
      sabnzbd/postproc.py

3
sabnzbd/postproc.py

@ -520,7 +520,8 @@ def process_job(nzo: NzbObject):
# Run further post-processing # Run further post-processing
if (all_ok or not cfg.safe_postproc()) and not nzb_list: if (all_ok or not cfg.safe_postproc()) and not nzb_list:
# Use par2 files to deobfuscate unpacked file names # 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) newfiles = deobfuscate.recover_par2_names(newfiles)
if cfg.deobfuscate_final_filenames(): if cfg.deobfuscate_final_filenames():

Loading…
Cancel
Save