Browse Source

Revert some improvements to the encrypted RAR-detection

Closes #1840
3.2.x
Safihre 4 years ago
parent
commit
deca000a1b
  1. 5
      sabnzbd/assembler.py

5
sabnzbd/assembler.py

@ -344,8 +344,9 @@ def check_encrypted_and_unwanted_files(nzo: NzbObject, filepath: str) -> Tuple[b
# This one really didn't work
pass
except rarfile.RarCRCError as e:
# CRC errors can be thrown for wrong password and actual CRC errors
if "wrong password" not in str(e).lower():
# CRC errors can be thrown for wrong password or
# missing the next volume (with correct password)
if "cannot find volume" in str(e).lower():
# We assume this one worked!
password_hit = password
break

Loading…
Cancel
Save