mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Add NeutralLeech to indexer flags
This commit is contained in:
@@ -134,11 +134,20 @@ namespace NzbDrone.Core.Indexers
|
|||||||
//Add common flags
|
//Add common flags
|
||||||
if (Protocol == DownloadProtocol.Torrent && c is TorrentInfo torrentRelease)
|
if (Protocol == DownloadProtocol.Torrent && c is TorrentInfo torrentRelease)
|
||||||
{
|
{
|
||||||
if (torrentRelease.DownloadVolumeFactor == 0)
|
if (torrentRelease.DownloadVolumeFactor == 0.0)
|
||||||
{
|
{
|
||||||
torrentRelease.IndexerFlags.Add(IndexerFlag.FreeLeech);
|
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))
|
if (torrentRelease.Scene.GetValueOrDefault(false))
|
||||||
{
|
{
|
||||||
torrentRelease.IndexerFlags.Add(IndexerFlag.Scene);
|
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 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 HalfLeech => new ("halfleech", "Release counts 50% to ratio");
|
||||||
public static IndexerFlag Scene => new ("scene", "Uploader follows scene rules");
|
public static IndexerFlag Scene => new ("scene", "Uploader follows scene rules");
|
||||||
public static IndexerFlag DoubleUpload => new ("doubleupload", "Seeding counts double for release");
|
public static IndexerFlag DoubleUpload => new ("doubleupload", "Seeding counts double for release");
|
||||||
|
Reference in New Issue
Block a user