mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
Add: option to skip automatic redownload when removing from queue (#734)
* Add: option to skip automatic redownload when removing from queue * Add tests for RedownloadFailedDownloadService * Fix formatting * Make re-download dialog conditional
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.IndexerSearch;
|
||||
@@ -28,6 +28,12 @@ namespace NzbDrone.Core.Download
|
||||
|
||||
public void HandleAsync(DownloadFailedEvent message)
|
||||
{
|
||||
if (message.SkipReDownload)
|
||||
{
|
||||
_logger.Debug("Skip redownloading requested by user");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_configService.AutoRedownloadFailed)
|
||||
{
|
||||
_logger.Debug("Auto redownloading failed albums is disabled");
|
||||
|
||||
Reference in New Issue
Block a user