From 2dc5c329c9ad9da1a29b77e48ca2320b753d145c Mon Sep 17 00:00:00 2001 From: shypike Date: Sun, 7 Jul 2013 13:11:01 +0200 Subject: [PATCH] Fix special case of unjustified encryption warning. --- sabnzbd/assembler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sabnzbd/assembler.py b/sabnzbd/assembler.py index 20aa3a7..be4aa5d 100644 --- a/sabnzbd/assembler.py +++ b/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: