mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-31 04:47:27 +01:00
Fixed: Set Download and Upload Factors from Generic Torznab
This commit is contained in:
parent
f607347bd7
commit
b8dd8b1880
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue