From 1d339b97f6bb0a295951103f8430e1c467795993 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 12 May 2014 12:48:47 -0700 Subject: [PATCH] Fix for looping issue during backlog searches --- sickbeard/providers/generic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sickbeard/providers/generic.py b/sickbeard/providers/generic.py index 5cb12a62..7255f3a1 100644 --- a/sickbeard/providers/generic.py +++ b/sickbeard/providers/generic.py @@ -258,6 +258,10 @@ class GenericProvider: else: searchItems[epObj] = itemList + # if we have cached results return them. + if len(results): + return results + for ep_obj, items in searchItems.items(): for item in items: