From 0a5ed41270fa4d0846f841f87fc17e1e8f950552 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 16 Mar 2014 22:31:27 -0700 Subject: [PATCH] Fixed: Don't blacklist nzbs due to disk space issues --- src/NzbDrone.Core/Download/FailedDownloadService.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/FailedDownloadService.cs b/src/NzbDrone.Core/Download/FailedDownloadService.cs index c432eafeb..2805cc1c6 100644 --- a/src/NzbDrone.Core/Download/FailedDownloadService.cs +++ b/src/NzbDrone.Core/Download/FailedDownloadService.cs @@ -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");