mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 19:42:20 -05:00
Fix for issue #546
This commit is contained in:
parent
31297b9069
commit
1d01d2bc52
@ -19,8 +19,6 @@
|
|||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import Queue
|
|
||||||
import time
|
|
||||||
import traceback
|
import traceback
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
@ -33,11 +31,8 @@ from sickbeard import ui
|
|||||||
search_queue_lock = threading.Lock()
|
search_queue_lock = threading.Lock()
|
||||||
|
|
||||||
BACKLOG_SEARCH = 10
|
BACKLOG_SEARCH = 10
|
||||||
RSS_SEARCH = 20
|
|
||||||
FAILED_SEARCH = 30
|
FAILED_SEARCH = 30
|
||||||
MANUAL_SEARCH = 30
|
MANUAL_SEARCH = 30
|
||||||
SNATCH = 40
|
|
||||||
|
|
||||||
|
|
||||||
class SearchQueue(generic_queue.GenericQueue):
|
class SearchQueue(generic_queue.GenericQueue):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -109,8 +104,6 @@ class ManualSearchQueueItem(generic_queue.QueueItem):
|
|||||||
def execute(self):
|
def execute(self):
|
||||||
generic_queue.QueueItem.execute(self)
|
generic_queue.QueueItem.execute(self)
|
||||||
|
|
||||||
didSearch = False
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.log("Beginning manual search for [" + self.ep_obj.prettyName() + "]")
|
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)
|
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):
|
def execute(self):
|
||||||
generic_queue.QueueItem.execute(self)
|
generic_queue.QueueItem.execute(self)
|
||||||
|
|
||||||
fs = []
|
|
||||||
didSearch = False
|
|
||||||
|
|
||||||
# check if we want to search for season packs instead of just season/episode
|
# check if we want to search for season packs instead of just season/episode
|
||||||
seasonSearch = False
|
seasonSearch = False
|
||||||
seasonEps = self.show.getAllEpisodes(self.segment)
|
seasonEps = self.show.getAllEpisodes(self.segment)
|
||||||
@ -267,8 +257,6 @@ class FailedQueueItem(generic_queue.QueueItem):
|
|||||||
def execute(self):
|
def execute(self):
|
||||||
generic_queue.QueueItem.execute(self)
|
generic_queue.QueueItem.execute(self)
|
||||||
|
|
||||||
fs = []
|
|
||||||
didSearch = False
|
|
||||||
episodes = []
|
episodes = []
|
||||||
|
|
||||||
for i, epObj in enumerate(episodes):
|
for i, epObj in enumerate(episodes):
|
||||||
@ -286,7 +274,7 @@ class FailedQueueItem(generic_queue.QueueItem):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
logger.log(
|
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)
|
searchResult = search.searchProviders(self.show, self.episodes[0].season, self.episodes, False, True)
|
||||||
if searchResult:
|
if searchResult:
|
||||||
|
Loading…
Reference in New Issue
Block a user