New: Add NeutralLeech to indexer flags

pull/1934/head
Bogdan 12 months ago
parent c4b0ecdafe
commit c690e9a50a

@ -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);

@ -63,7 +63,8 @@ namespace NzbDrone.Core.Indexers
}
public static IndexerFlag Internal => new ("internal", "Uploader is an internal release group");
public static IndexerFlag FreeLeech => new ("freeleech", "Release doesn't count toward ratio");
public static IndexerFlag FreeLeech => new ("freeleech", "Download doesn't count toward ratio");
public static IndexerFlag NeutralLeech => new ("neutralleech", "Download and upload doesn't count toward ratio");
public static IndexerFlag HalfLeech => new ("halfleech", "Release counts 50% to ratio");
public static IndexerFlag Scene => new ("scene", "Uploader follows scene rules");
public static IndexerFlag DoubleUpload => new ("doubleupload", "Seeding counts double for release");

Loading…
Cancel
Save