|
|
@ -69,9 +69,16 @@ namespace NzbDrone.Core.Download
|
|
|
|
String hash = null;
|
|
|
|
String hash = null;
|
|
|
|
|
|
|
|
|
|
|
|
if (magnetUrl.IsNotNullOrWhiteSpace())
|
|
|
|
if (magnetUrl.IsNotNullOrWhiteSpace())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
hash = DownloadFromMagnetUrl(remoteEpisode, magnetUrl);
|
|
|
|
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())
|
|
|
|
if (hash == null && !torrentUrl.IsNullOrWhiteSpace())
|
|
|
|
{
|
|
|
|
{
|
|
|
|