mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -04: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 @@ 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…
Add table
Add a link
Reference in a new issue