Browse Source

Get rarfiles to delete from both RarFile and parsing Unrar output

RarFile will fail to list all volumes when the job is encrypted, it will only list the first volume. But parsing the output of Unrar will fail on special-char filenames (probably limited to Windows). So now only jobs that are encrypted *and* have many special-chars will not have all rars deleted correctly,
tags/2.2.0RC2
Safihre 8 years ago
parent
commit
7e40c12e47
  1. 3
      sabnzbd/newsunpack.py

3
sabnzbd/newsunpack.py

@ -653,6 +653,9 @@ def rar_extract_core(rarfile_path, numrars, one_folder, nzo, setname, extraction
lines.append(line)
if line.startswith('Extracting from'):
filename = TRANS((re.search(EXTRACTFROM_RE, line).group(1)))
if filename not in rarfiles:
rarfiles.append(filename)
curr += 1
nzo.set_action_line(T('Unpacking'), '%02d/%02d' % (curr, numrars))

Loading…
Cancel
Save