Commit 889fa19f authored by echel0n's avatar echel0n
Browse files

Fixed issues with failed snatch searcher attempting to re-download archived episodes

parent cd59c7f2
# Changelog
- * eb98521 - 2018-08-30: Pre-Release v9.3.65.dev3
- * d51ba52 - 2018-08-30: Fixed issues with failed snatch searcher attempting to re-download archived episodes
- * cd59c7f - 2018-08-30: Pre-Release v9.3.65.dev3
- * 61c0376 - 2018-08-30: Pre-Release v9.3.65.dev2
- * a534896 - 2018-08-30: Pre-Release v9.3.65.dev1
- * 9d880bd - 2018-08-30: Failed processing skips paused shows and archived episodes.
......
......@@ -24,7 +24,7 @@ import threading
import sickrage
from sickrage.core import findCertainShow
from sickrage.core.common import Quality
from sickrage.core.common import Quality, SNATCHED, SNATCHED_BEST, SNATCHED_PROPER
from sickrage.core.queues.search import FailedQueueItem
from sickrage.core.tv.episode import TVEpisode
from sickrage.core.tv.show.history import FailedHistory, History
......@@ -79,6 +79,10 @@ class FailedSnatchSearcher(object):
ep_obj = show.getEpisode(int(episode['season']), int(episode['episode']))
if isinstance(ep_obj, TVEpisode):
curStatus, curQuality = Quality.splitCompositeStatus(ep_obj.status)
if curStatus not in {SNATCHED, SNATCHED_BEST, SNATCHED_PROPER}:
continue
# put it on the queue
sickrage.app.search_queue.put(FailedQueueItem(show, [ep_obj], True))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment