Fixed TorrentBlackhole failing fatally on magnet link instead of falling back to torrent url.

This commit is contained in:
Taloth Saldono
2015-03-15 01:49:11 +01:00
parent 36ac4f0a8d
commit a3873634b0
2 changed files with 9 additions and 2 deletions

View File

@@ -70,7 +70,14 @@ namespace NzbDrone.Core.Download
if (magnetUrl.IsNotNullOrWhiteSpace())
{
hash = DownloadFromMagnetUrl(remoteEpisode, magnetUrl);
try
{
hash = DownloadFromMagnetUrl(remoteEpisode, magnetUrl);
}
catch (NotSupportedException ex)
{
_logger.Debug("Magnet not supported by download client, trying torrent. ({0})", ex.Message);
}
}
if (hash == null && !torrentUrl.IsNullOrWhiteSpace())