From f8b4e75b74c53b2abfd44c1720ee6e40776d8310 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 20 Jan 2013 21:11:36 +0100 Subject: [PATCH] If data is empty, assume correct type for downloaders --- couchpotato/core/downloaders/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/base.py b/couchpotato/core/downloaders/base.py index 377e6062..770d0316 100644 --- a/couchpotato/core/downloaders/base.py +++ b/couchpotato/core/downloaders/base.py @@ -106,4 +106,6 @@ class Downloader(Provider): def isEnabled(self, manual, data = {}): d_manual = self.conf('manual', default = False) - return super(Downloader, self).isEnabled() and ((d_manual and manual) or (d_manual is False)) and self.isCorrectType(data.get('type')) + return super(Downloader, self).isEnabled() and \ + ((d_manual and manual) or (d_manual is False)) and \ + (not data or self.isCorrectType(data.get('type')))