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

View file

@ -61,6 +61,12 @@ protected override ReleaseInfo ProcessItem(XElement item, ReleaseInfo releaseInf
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);
}