mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-25 22:37:27 -04:00
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.
This commit is contained in:
@@ -35,6 +35,11 @@ namespace NzbDrone.Core.Download.Clients.Deluge
|
|||||||
{
|
{
|
||||||
var actualHash = _proxy.AddTorrentFromMagnet(magnetLink, Settings);
|
var actualHash = _proxy.AddTorrentFromMagnet(magnetLink, Settings);
|
||||||
|
|
||||||
|
if (actualHash.IsNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
throw new DownloadClientException("Deluge failed to add magnet " + magnetLink);
|
||||||
|
}
|
||||||
|
|
||||||
if (!Settings.TvCategory.IsNullOrWhiteSpace())
|
if (!Settings.TvCategory.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
_proxy.SetLabel(actualHash, Settings.TvCategory, Settings);
|
_proxy.SetLabel(actualHash, Settings.TvCategory, Settings);
|
||||||
|
|||||||
Reference in New Issue
Block a user