Add missing error check when adding a magnet link to deluge (#2295)

* Add missing error check when adding a magnet link to deluge

* Fix typo.
pull/2361/merge
Steven 7 years ago committed by Taloth
parent f1b2186313
commit 17cfaf170e

@ -35,6 +35,11 @@ namespace NzbDrone.Core.Download.Clients.Deluge
{
var actualHash = _proxy.AddTorrentFromMagnet(magnetLink, Settings);
if (actualHash.IsNullOrWhiteSpace())
{
throw new DownloadClientException("Deluge failed to add magnet " + magnetLink);
}
if (!Settings.TvCategory.IsNullOrWhiteSpace())
{
_proxy.SetLabel(actualHash, Settings.TvCategory, Settings);

Loading…
Cancel
Save