mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
New: Add NeutralLeech to indexer flags
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user