mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 13:01:28 +02:00
New: Added support for AHD User Release indexer flag (#4599)
- Added missing AHD_Internal to the decision maker to increase the score for it Fixes #3770
This commit is contained in:
@@ -205,9 +205,11 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
case IndexerFlags.PTP_Approved:
|
||||
case IndexerFlags.PTP_Golden:
|
||||
case IndexerFlags.HDB_Internal:
|
||||
case IndexerFlags.AHD_Internal:
|
||||
score += 2;
|
||||
break;
|
||||
case IndexerFlags.G_Halfleech:
|
||||
case IndexerFlags.AHD_UserRelease:
|
||||
score += 1;
|
||||
break;
|
||||
}
|
||||
|
@@ -106,6 +106,11 @@ namespace NzbDrone.Core.Indexers.AwesomeHD
|
||||
flags |= IndexerFlags.AHD_Internal;
|
||||
}
|
||||
|
||||
if (torrent.UserRelease)
|
||||
{
|
||||
flags |= IndexerFlags.AHD_UserRelease;
|
||||
}
|
||||
|
||||
var imdbId = 0;
|
||||
if (torrent.ImdbId.Length > 2)
|
||||
{
|
||||
|
@@ -97,6 +97,7 @@ namespace NzbDrone.Core.Parser.Model
|
||||
AHD_Internal = 64, // AHD, internal
|
||||
G_Scene = 128, //General, the torrent comes from the "scene"
|
||||
G_Freeleech75 = 256, //Currently only used for AHD, signifies a torrent counts towards 75 percent of your download quota.
|
||||
G_Freeleech25 = 512 //Currently only used for AHD, signifies a torrent counts towards 25 percent of your download quota.
|
||||
G_Freeleech25 = 512, //Currently only used for AHD, signifies a torrent counts towards 25 percent of your download quota.
|
||||
AHD_UserRelease = 1024 // AHD, internal
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user