mirror of
https://github.com/Radarr/Radarr
synced 2026-03-03 11:04:32 +01: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:
parent
f1b2186313
commit
17cfaf170e
1 changed files with 5 additions and 0 deletions
|
|
@ -35,6 +35,11 @@ protected override string AddFromMagnetLink(RemoteEpisode remoteEpisode, string
|
|||
{
|
||||
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…
Reference in a new issue