mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 02:23:38 +00:00
Fixed failed and manual snatches that where causing WebUI lock-ups.
This commit is contained in:
parent
0cdd1cf813
commit
c423d349e8
1 changed files with 5 additions and 11 deletions
|
@ -73,16 +73,8 @@ class SearchQueue(generic_queue.GenericQueue):
|
||||||
|
|
||||||
def add_item(self, item):
|
def add_item(self, item):
|
||||||
|
|
||||||
if isinstance(item, DailySearchQueueItem) and not self.is_in_queue(item.show, item.segment):
|
if isinstance(item, (DailySearchQueueItem, BacklogQueueItem, ManualSearchQueueItem, FailedQueueItem)) \
|
||||||
sickbeard.name_cache.buildNameCache(item.show)
|
and not self.is_in_queue(item.show, item.segment):
|
||||||
generic_queue.GenericQueue.add_item(self, item)
|
|
||||||
elif isinstance(item, BacklogQueueItem) and not self.is_in_queue(item.show, item.segment):
|
|
||||||
sickbeard.name_cache.buildNameCache(item.show)
|
|
||||||
generic_queue.GenericQueue.add_item(self, item)
|
|
||||||
elif isinstance(item, ManualSearchQueueItem) and not self.is_in_queue(item.show, item.segment):
|
|
||||||
sickbeard.name_cache.buildNameCache(item.show)
|
|
||||||
generic_queue.GenericQueue.add_item(self, item)
|
|
||||||
elif isinstance(item, FailedQueueItem) and not self.is_in_queue(item.show, item.segment):
|
|
||||||
sickbeard.name_cache.buildNameCache(item.show)
|
sickbeard.name_cache.buildNameCache(item.show)
|
||||||
generic_queue.GenericQueue.add_item(self, item)
|
generic_queue.GenericQueue.add_item(self, item)
|
||||||
else:
|
else:
|
||||||
|
@ -236,10 +228,12 @@ class FailedQueueItem(generic_queue.QueueItem):
|
||||||
|
|
||||||
# give the CPU a break
|
# give the CPU a break
|
||||||
time.sleep(common.cpu_presets[sickbeard.CPU_PRESET])
|
time.sleep(common.cpu_presets[sickbeard.CPU_PRESET])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.log(u"No valid episode found to retry for [" + epObj.prettyName() + "]")
|
logger.log(u"No valid episode found to retry for [" + epObj.prettyName() + "]")
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
|
|
||||||
|
if self.success is None:
|
||||||
|
self.success = False
|
||||||
|
|
||||||
self.finish()
|
self.finish()
|
Loading…
Reference in a new issue