1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Handle failed downloading on NZB so it will not get added to the History if it fails.

This commit is contained in:
Mark McDowall 2011-04-27 08:40:00 -07:00
parent 3a6cf56db1
commit 4e9f8bd2d0

View File

@ -160,7 +160,11 @@ internal void ProcessItem(SyndicationItem feedItem)
var folder = !String.IsNullOrEmpty(blackholeDir) ? blackholeDir : Path.Combine(CentralDispatch.AppPath, "App_Data");
var fileName = Path.Combine(folder, sabTitle + ".nzb");
_logger.Info("Downloading NZB: {0}", sabTitle);
_httpProvider.DownloadFile(NzbDownloadUrl(feedItem), fileName);
if (!_httpProvider.DownloadFile(NzbDownloadUrl(feedItem), fileName))
{
_logger.Info("Failed to download NZB");
return;
}
}
//else send to SAB