Fixed: Set Download and Upload Factors from Generic Torznab

This commit is contained in:
Qstick
2022-07-17 14:52:21 -05:00
parent f607347bd7
commit b8dd8b1880
@@ -61,6 +61,12 @@ namespace NzbDrone.Core.Indexers.Torznab
torrentInfo.ImdbId = int.Parse(GetImdbId(item).Substring(2));
}
var downloadFactor = TryGetFloatTorznabAttribute(item, "downloadvolumefactor", 1);
var uploadFactor = TryGetFloatTorznabAttribute(item, "uploadvolumefactor", 1);
torrentInfo.DownloadVolumeFactor = downloadFactor;
torrentInfo.UploadVolumeFactor = uploadFactor;
torrentInfo.IndexerFlags = GetFlags(item);
torrentInfo.PosterUrl = GetPosterUrl(item);
}