New: Add NeutralLeech to indexer flags

This commit is contained in:
Bogdan
2023-11-24 22:31:00 +02:00
parent c4b0ecdafe
commit c690e9a50a
2 changed files with 12 additions and 2 deletions
+10 -1
View File
@@ -134,11 +134,20 @@ namespace NzbDrone.Core.Indexers
//Add common flags
if (Protocol == DownloadProtocol.Torrent && c is TorrentInfo torrentRelease)
{
if (torrentRelease.DownloadVolumeFactor == 0)
if (torrentRelease.DownloadVolumeFactor == 0.0)
{
torrentRelease.IndexerFlags.Add(IndexerFlag.FreeLeech);
}
if (torrentRelease.UploadVolumeFactor == 0.0)
{
torrentRelease.IndexerFlags.Add(IndexerFlag.NeutralLeech);
}
else if (torrentRelease.UploadVolumeFactor == 2.0)
{
torrentRelease.IndexerFlags.Add(IndexerFlag.DoubleUpload);
}
if (torrentRelease.Scene.GetValueOrDefault(false))
{
torrentRelease.IndexerFlags.Add(IndexerFlag.Scene);