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 # This one really didn't work
pass pass
except rarfile.RarCRCError as e: except rarfile.RarCRCError as e:
# CRC errors can be thrown for wrong password and actual CRC errors # CRC errors can be thrown for wrong password or
if "wrong password" not in str(e).lower(): # missing the next volume (with correct password)
if "cannot find volume" in str(e).lower():
# We assume this one worked! # We assume this one worked!
password_hit = password password_hit = password
break break

Loading…
Cancel
Save