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
pull/4618/head
austinwbest 4 years ago committed by GitHub
parent 3a0aa51cbf
commit 5389c86cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}
}

Loading…
Cancel
Save