Browse Source

When retrying post processing don't attempt to download existing par2 files again.

tags/0.7.4Beta1
ShyPike 13 years ago
parent
commit
cfa79c08b2
  1. 6
      sabnzbd/newsunpack.py
  2. 1
      sabnzbd/nzbstuff.py

6
sabnzbd/newsunpack.py

@ -951,8 +951,8 @@ def PAR_Verify(parfile, parfile_nzf, nzo, setname, joinables, classic=False):
# Skip empty lines
if line == '':
continue
if 'Repairing:' not in line:
if 'Repairing:' not in line:
lines.append(line)
# And off we go
@ -1060,7 +1060,7 @@ def PAR_Verify(parfile, parfile_nzf, nzo, setname, joinables, classic=False):
if extrapar_list:
new_nzf = extrapar_list.pop()
nzo.add_parfile(new_nzf)
extrapars.remove(new_nzf)
if new_nzf in extrapars: extrapars.remove(new_nzf)
added_blocks += block_size
else:

1
sabnzbd/nzbstuff.py

@ -942,6 +942,7 @@ class NzbObject(TryList):
self.files_table[nzf.nzf_id] = nzf
self.bytes += nzf.bytes
nzf.filename = filename
nzf.completed = True
self.handle_par2(nzf, file_done=True)
self.remove_nzf(nzf)
logging.info('File %s added to job', filename)

Loading…
Cancel
Save