mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-15 04:55:26 +01:00
New: Add NeutralLeech to indexer flags
This commit is contained in:
parent
c4b0ecdafe
commit
c690e9a50a
2 changed files with 12 additions and 2 deletions
|
|
@ -134,11 +134,20 @@ protected virtual IList<ReleaseInfo> CleanupReleases(IEnumerable<ReleaseInfo> re
|
|||
//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 @@ public override bool Equals(object obj)
|
|||
}
|
||||
|
||||
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…
Reference in a new issue