From 22d7230b3f05742fa0b4689dbb87223ae8fb000b Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 14 Sep 2014 17:40:59 -0700 Subject: [PATCH] Fix for AttributeError: 'FailedQueueItem' object has no attribute 'ep_obj' --- sickbeard/search_queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/search_queue.py b/sickbeard/search_queue.py index 7d2cc46b..1703c17e 100644 --- a/sickbeard/search_queue.py +++ b/sickbeard/search_queue.py @@ -49,9 +49,9 @@ class SearchQueue(generic_queue.GenericQueue): return True return False - def is_ep_in_queue(self, ep_obj): + def is_ep_in_queue(self, segment): for cur_item in self.queue: - if isinstance(cur_item, (ManualSearchQueueItem, FailedQueueItem)) and cur_item.ep_obj == ep_obj: + if isinstance(cur_item, (ManualSearchQueueItem, FailedQueueItem)) and cur_item.segment == segment: return True return False