mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 21:53:37 +00:00
Fix for failed downloads
This commit is contained in:
parent
29626d1187
commit
c761f32c85
1 changed files with 9 additions and 11 deletions
|
@ -257,9 +257,8 @@ class FailedQueueItem(generic_queue.QueueItem):
|
||||||
def execute(self):
|
def execute(self):
|
||||||
generic_queue.QueueItem.execute(self)
|
generic_queue.QueueItem.execute(self)
|
||||||
|
|
||||||
episodes = []
|
for i, epObj in enumerate(self.episodes):
|
||||||
|
with epObj.lock:
|
||||||
for i, epObj in enumerate(episodes):
|
|
||||||
(release, provider) = failed_history.findRelease(self.show, epObj.season, epObj.episode)
|
(release, provider) = failed_history.findRelease(self.show, epObj.season, epObj.episode)
|
||||||
if release:
|
if release:
|
||||||
logger.log(u"Marking release as bad: " + release)
|
logger.log(u"Marking release as bad: " + release)
|
||||||
|
@ -268,7 +267,6 @@ class FailedQueueItem(generic_queue.QueueItem):
|
||||||
history.logFailed(self.show.indexerid, epObj.season, epObj.episode, epObj.status, release, provider)
|
history.logFailed(self.show.indexerid, epObj.season, epObj.episode, epObj.status, release, provider)
|
||||||
|
|
||||||
failed_history.revertEpisode(self.show, epObj.season, epObj.episode)
|
failed_history.revertEpisode(self.show, epObj.season, epObj.episode)
|
||||||
episodes.append(epObj)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.log(
|
logger.log(
|
||||||
|
|
Loading…
Reference in a new issue