From 23db5c0f0ef1a93a6ff3583436814c36e186a49b Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 4 Apr 2025 21:36:33 +0300 Subject: [PATCH] passthepopcorn: parse neutral leech releases --- .../Indexers/Definitions/PassThePopcorn.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Indexers/Definitions/PassThePopcorn.cs b/src/Jackett.Common/Indexers/Definitions/PassThePopcorn.cs index 21fa345f4..36aaa1b37 100644 --- a/src/Jackett.Common/Indexers/Definitions/PassThePopcorn.cs +++ b/src/Jackett.Common/Indexers/Definitions/PassThePopcorn.cs @@ -205,7 +205,7 @@ namespace Jackett.Common.Indexers.Definitions var downloadVolumeFactor = torrent.FreeleechType?.ToUpperInvariant() switch { - "FREELEECH" => 0, + "FREELEECH" or "NEUTRAL LEECH" => 0, "HALF LEECH" => 0.5, _ => 1 }; @@ -226,6 +226,12 @@ namespace Jackett.Common.Indexers.Definitions categories.Add(TorznabCatType.TV.ID); } + var uploadVolumeFactor = torrent.FreeleechType?.ToUpperInvariant() switch + { + "NEUTRAL LEECH" => 0, + _ => 1 + }; + var release = new ReleaseInfo { Guid = infoUrl, @@ -241,7 +247,7 @@ namespace Jackett.Common.Indexers.Definitions PublishDate = DateTime.Parse(torrent.UploadTime + " +0000", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal), Imdb = result.ImdbId.IsNotNullOrWhiteSpace() ? int.Parse(result.ImdbId) : 0, DownloadVolumeFactor = downloadVolumeFactor, - UploadVolumeFactor = 1, + UploadVolumeFactor = uploadVolumeFactor, MinimumRatio = 1, MinimumSeedTime = 345600, Genres = result.Tags?.ToList() ?? new List(),