Browse Source

Fix special case of unjustified encryption warning.

tags/0.7.14
shypike 12 years ago
parent
commit
2dc5c329c9
  1. 3
      sabnzbd/assembler.py

3
sabnzbd/assembler.py

@ -294,7 +294,8 @@ def is_cloaked(path, names):
for name in names:
name = os.path.split(name.lower())[1]
name, ext = os.path.splitext(unicoder(name))
if ext == u'.rar' and fname.startswith(name) and (len(fname) - len(name)) < 8:
if ext == u'.rar' and fname.startswith(name) and (len(fname) - len(name)) < 8 and \
'.subs.' not in fname:
logging.debug('File %s is probably encrypted due to RAR with same name inside this RAR', fname)
return True
elif 'password' in name:

Loading…
Cancel
Save