mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
skip queue check and adding new items if download client isn't configured correctly.
This commit is contained in:
parent
1eb278c7f6
commit
a5bb99367e
8 changed files with 73 additions and 5 deletions
|
@ -27,9 +27,15 @@ namespace NzbDrone.Core.Download
|
|||
public bool DownloadReport(RemoteEpisode remoteEpisode)
|
||||
{
|
||||
var downloadTitle = remoteEpisode.Report.Title;
|
||||
var provider = _downloadClientProvider.GetDownloadClient();
|
||||
var downloadClient = _downloadClientProvider.GetDownloadClient();
|
||||
|
||||
bool success = provider.DownloadNzb(remoteEpisode);
|
||||
if (!downloadClient.IsConfigured)
|
||||
{
|
||||
_logger.Warn("Download client {0} isn't configured yet.", downloadClient.GetType().Name);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool success = downloadClient.DownloadNzb(remoteEpisode);
|
||||
|
||||
if (success)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue