Private GIT

Skip to content
Snippets Groups Projects
Commit 5114b0d8 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Try to fix paused show still downloading

parent 061c192c
No related merge requests found
......@@ -70,7 +70,7 @@ class DailySearcher():
show = helpers.findCertainShow(sickbeard.showList, int(sqlEp["showid"]))
# for when there is orphaned series in the database but not loaded into our showlist
if not show:
if not show or show.paused:
continue
except exceptions.MultipleShowObjectsException:
......@@ -91,9 +91,7 @@ class DailySearcher():
UpdateWantedList = 0
ep = show.getEpisode(int(sqlEp["season"]), int(sqlEp["episode"]))
with ep.lock:
if ep.show.paused:
ep.status = ep.show.default_ep_status
elif ep.season == 0:
if ep.season == 0:
logger.log(u"New episode " + ep.prettyName() + " airs today, setting status to SKIPPED because is a special season")
ep.status = common.SKIPPED
elif sickbeard.TRAKT_USE_ROLLING_DOWNLOAD and sickbeard.USE_TRAKT:
......
......@@ -216,6 +216,7 @@ class BacklogQueueItem(generic_queue.QueueItem):
def run(self):
generic_queue.QueueItem.run(self)
if not self.show.paused:
try:
logger.log("Beginning backlog search for: [" + self.show.name + "]")
searchResult = search.searchProviders(self.show, self.segment, False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment