mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Added: Missing error check when adding a magnet link to deluge
This commit is contained in:
parent
4bb0735565
commit
97d4063cf3
1 changed files with 5 additions and 0 deletions
|
@ -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.MusicCategory.IsNullOrWhiteSpace())
|
if (!Settings.MusicCategory.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
_proxy.SetLabel(actualHash, Settings.MusicCategory, Settings);
|
_proxy.SetLabel(actualHash, Settings.MusicCategory, Settings);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue