From 4bfb271e8d447c2aad5b42cdbcbb37c3dc95f62f Mon Sep 17 00:00:00 2001 From: KontiSR Date: Wed, 17 Sep 2014 10:18:47 +0200 Subject: [PATCH 1/2] Can't += dicts. Need to dict.copy() Bug in master while doing daily search: https://sickrage.tv/forums/forum/help-support/bug-issue-reports/8358-unsupported-operand-type-s-for-dict-and-dict --- sickbeard/providers/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/providers/generic.py b/sickbeard/providers/generic.py index 59b1decb..a58c14a5 100644 --- a/sickbeard/providers/generic.py +++ b/sickbeard/providers/generic.py @@ -207,7 +207,7 @@ class GenericProvider: results = {} for ep in episode: - results += self.cache.findNeededEpisodes(ep) + results.copy(self.cache.findNeededEpisodes(ep)) return results From 4c8b100be9b603c3b0b3e806c595f9613b1536ef Mon Sep 17 00:00:00 2001 From: KontiSR Date: Wed, 17 Sep 2014 13:43:10 +0200 Subject: [PATCH 2/2] Shouldn't be copy() but update(). Tested now, and at least the exception is gone. --- sickbeard/providers/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/providers/generic.py b/sickbeard/providers/generic.py index a58c14a5..ec13997f 100644 --- a/sickbeard/providers/generic.py +++ b/sickbeard/providers/generic.py @@ -207,7 +207,7 @@ class GenericProvider: results = {} for ep in episode: - results.copy(self.cache.findNeededEpisodes(ep)) + results.update(self.cache.findNeededEpisodes(ep)) return results