Map seed configuration on release only when it's not null

Fixes #1720
pull/1724/head
Bogdan 1 year ago
parent f5b57db753
commit d05128ca33

@ -62,7 +62,12 @@ namespace NzbDrone.Core.Download
}
// Get the seed configuration for this release.
((TorrentInfo)release).SeedConfiguration = _seedConfigProvider.GetSeedConfiguration(release);
var seedConfiguration = _seedConfigProvider.GetSeedConfiguration(release);
if (seedConfiguration != null)
{
((TorrentInfo)release).SeedConfiguration = _seedConfigProvider.GetSeedConfiguration(release);
}
var indexer = _indexerFactory.GetInstance(_indexerFactory.Get(release.IndexerId));

Loading…
Cancel
Save