Browse Source

Repair side-effect of SFV improvements.

A download without par2 files and without SFV files should not be failed.
tags/0.7.6Beta1
ShyPike 13 years ago
parent
commit
4516027fdb
  1. 5
      sabnzbd/postproc.py

5
sabnzbd/postproc.py

@ -590,7 +590,8 @@ def try_sfv_check(nzo, workdir, setname):
""" Attempt to verify set using SFV file
Return True if verified, False when failed
When setname is '', all SFV files will be used, otherwise only the matching one
"""
When setname is '' and no SFV files are found, True is returned
"""
# Get list of SFV names; shortest name first, minimizes the chance on a mismatch
sfvs = globber(workdir, '*.sfv')
sfvs.sort(lambda x, y: len(x) - len(y))
@ -611,7 +612,7 @@ def try_sfv_check(nzo, workdir, setname):
nzo.set_unpack_info('Repair', T('Verified successfully using SFV files'))
if setname:
break
return found and not par_error
return (found or not setname) and not par_error
#------------------------------------------------------------------------------

Loading…
Cancel
Save