Build Magnet on Cardigann separate

This commit is contained in:
Qstick
2021-12-04 17:17:47 -06:00
parent 6d62744667
commit ea83020714
2 changed files with 15 additions and 12 deletions
-12
View File
@@ -134,18 +134,6 @@ namespace NzbDrone.Core.Indexers
if (Protocol == DownloadProtocol.Torrent)
{
// generate magnet link from info hash (not allowed for private sites)
if (((TorrentInfo)c).MagnetUrl == null && !string.IsNullOrWhiteSpace(((TorrentInfo)c).InfoHash) && ((IndexerDefinition)Definition).Privacy != IndexerPrivacy.Private)
{
((TorrentInfo)c).MagnetUrl = MagnetLinkBuilder.BuildPublicMagnetLink(((TorrentInfo)c).InfoHash, c.Title);
}
// generate info hash from magnet link
if (((TorrentInfo)c).MagnetUrl != null && string.IsNullOrWhiteSpace(((TorrentInfo)c).InfoHash))
{
((TorrentInfo)c).InfoHash = MagnetLinkBuilder.GetInfoHashFromMagnet(((TorrentInfo)c).MagnetUrl);
}
//Add common flags
if (((TorrentInfo)c).DownloadVolumeFactor == 0)
{