1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 12:02:35 +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:
austinwbest 2020-07-17 00:01:22 -04:00 committed by GitHub
parent 3a0aa51cbf
commit 5389c86cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -205,9 +205,11 @@ private int ScoreFlags(IndexerFlags flags)
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;
}

View File

@ -106,6 +106,11 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
flags |= IndexerFlags.AHD_Internal;
}
if (torrent.UserRelease)
{
flags |= IndexerFlags.AHD_UserRelease;
}
var imdbId = 0;
if (torrent.ImdbId.Length > 2)
{

View File

@ -97,6 +97,7 @@ public enum IndexerFlags
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
}
}