From 0a0935d635ce40b91afa6216ffe97267ad1255b5 Mon Sep 17 00:00:00 2001 From: Dean Gardiner Date: Sat, 5 Oct 2013 14:24:08 +1300 Subject: [PATCH] Fix to Provider getCatId when returning the cet_backup_id --- couchpotato/core/providers/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/providers/base.py b/couchpotato/core/providers/base.py index 66f7182b..87607109 100644 --- a/couchpotato/core/providers/base.py +++ b/couchpotato/core/providers/base.py @@ -274,7 +274,10 @@ class YarrProvider(Provider): if identifier in qualities: return ids - return [self.cat_backup_id] + if self.cat_backup_id: + return [self.cat_backup_id] + + return [] class ResultList(list):