From 56566d70bc4bf004978969b7c5c9afb25f4ae3f1 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 27 Jun 2012 22:26:54 +0200 Subject: [PATCH] Add new check to see if it's a .rar file. fix #474 --- couchpotato/core/downloaders/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/base.py b/couchpotato/core/downloaders/base.py index 710251aa..74e04de6 100644 --- a/couchpotato/core/downloaders/base.py +++ b/couchpotato/core/downloaders/base.py @@ -23,7 +23,7 @@ class Downloader(Plugin): def createFileName(self, data, filedata, movie): name = os.path.join(self.createNzbName(data, movie)) - if data.get('type') == 'nzb' and "DOCTYPE nzb" not in filedata: + if data.get('type') == 'nzb' and 'DOCTYPE nzb' not in filedata and '' not in filedata: return '%s.%s' % (name, 'rar') return '%s.%s' % (name, data.get('type'))