Fixed: Don't blacklist nzbs due to disk space issues

This commit is contained in:
Mark McDowall 2014-03-16 22:31:27 -07:00
parent 7445adb455
commit 0a5ed41270
1 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using NLog;
using NzbDrone.Common;
@ -118,6 +119,14 @@ namespace NzbDrone.Core.Download
continue;
}
//TODO: Make this more configurable (ignore failure reasons) to support changes and other failures that should be ignored
if (failedLocal.Message.Equals("Unpacking failed, write error or disk is full?",
StringComparison.InvariantCultureIgnoreCase))
{
_logger.Debug("Failed due to lack of disk space, do not blacklist");
continue;
}
if (failedHistory.Any(h => failedLocal.Id.Equals(h.Data.GetValueOrDefault(DOWNLOAD_CLIENT_ID))))
{
_logger.Debug("Already added to history as failed");