Fixed: (PTP) Parse half leech

This commit is contained in:
Bogdan
2023-12-04 10:41:29 +02:00
parent fbc3c09094
commit c3aa377ed5
2 changed files with 10 additions and 1 deletions
@@ -94,7 +94,12 @@ namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn
ImdbId = result.ImdbId.IsNotNullOrWhiteSpace() ? int.Parse(result.ImdbId) : 0,
Scene = torrent.Scene,
IndexerFlags = flags,
DownloadVolumeFactor = torrent.FreeleechType is "Freeleech" ? 0 : 1,
DownloadVolumeFactor = torrent.FreeleechType?.ToUpperInvariant() switch
{
"FREELEECH" => 0,
"HALF LEECH" => 0.5,
_ => 1
},
UploadVolumeFactor = 1,
MinimumRatio = 1,
MinimumSeedTime = 345600,