mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
Fixed: Set Download and Upload Factors from Generic Torznab
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user