From 76982c598861d57556960d8eecce261db5bc6d99 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 1 Jan 2022 20:08:59 -0600 Subject: [PATCH] Fixed: (Gazelle) Freeleech detection for releases --- .../Indexers/Definitions/Gazelle/GazelleParser.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs index 3aa5ec297..04daef331 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs @@ -85,7 +85,9 @@ namespace NzbDrone.Core.Indexers.Gazelle Peers = int.Parse(torrent.Leechers) + int.Parse(torrent.Seeders), PublishDate = torrent.Time.ToUniversalTime(), Scene = torrent.Scene, - PosterUrl = posterUrl + PosterUrl = posterUrl, + DownloadVolumeFactor = torrent.IsFreeLeech || torrent.IsNeutralLeech || torrent.IsPersonalFreeLeech ? 0 : 1, + UploadVolumeFactor = torrent.IsNeutralLeech ? 0 : 1 }; var category = torrent.Category; @@ -119,7 +121,9 @@ namespace NzbDrone.Core.Indexers.Gazelle Files = result.FileCount, Grabs = result.Snatches, PublishDate = DateTimeOffset.FromUnixTimeSeconds(result.GroupTime).UtcDateTime, - PosterUrl = posterUrl + PosterUrl = posterUrl, + DownloadVolumeFactor = result.IsFreeLeech || result.IsNeutralLeech || result.IsPersonalFreeLeech ? 0 : 1, + UploadVolumeFactor = result.IsNeutralLeech ? 0 : 1 }; var category = result.Category;