1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Fix for issue #546

This commit is contained in:
echel0n 2014-05-12 02:03:55 -07:00
parent 31297b9069
commit 1d01d2bc52

View File

@ -19,8 +19,6 @@
from __future__ import with_statement
import datetime
import Queue
import time
import traceback
import threading
@ -33,11 +31,8 @@ from sickbeard import ui
search_queue_lock = threading.Lock()
BACKLOG_SEARCH = 10
RSS_SEARCH = 20
FAILED_SEARCH = 30
MANUAL_SEARCH = 30
SNATCH = 40
class SearchQueue(generic_queue.GenericQueue):
def __init__(self):
@ -109,8 +104,6 @@ class ManualSearchQueueItem(generic_queue.QueueItem):
def execute(self):
generic_queue.QueueItem.execute(self)
didSearch = False
try:
logger.log("Beginning manual search for [" + self.ep_obj.prettyName() + "]")
searchResult = search.searchProviders(self, self.show, self.ep_obj.season, [self.ep_obj],False,True)
@ -175,9 +168,6 @@ class BacklogQueueItem(generic_queue.QueueItem):
def execute(self):
generic_queue.QueueItem.execute(self)
fs = []
didSearch = False
# check if we want to search for season packs instead of just season/episode
seasonSearch = False
seasonEps = self.show.getAllEpisodes(self.segment)
@ -267,8 +257,6 @@ class FailedQueueItem(generic_queue.QueueItem):
def execute(self):
generic_queue.QueueItem.execute(self)
fs = []
didSearch = False
episodes = []
for i, epObj in enumerate(episodes):
@ -286,7 +274,7 @@ class FailedQueueItem(generic_queue.QueueItem):
try:
logger.log(
"Beginning failed download search for episodes from Season [" + self.episodes[0].season + "]")
"Beginning failed download search for episodes from Season [" + str(self.episodes[0].season) + "]")
searchResult = search.searchProviders(self.show, self.episodes[0].season, self.episodes, False, True)
if searchResult: