|
|
|
@ -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.MusicCategory.IsNullOrWhiteSpace())
|
|
|
|
|
{
|
|
|
|
|
_proxy.SetLabel(actualHash, Settings.MusicCategory, Settings);
|
|
|
|
|