mirror of
https://github.com/Radarr/Radarr
synced 2025-01-02 13:24:33 +00: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:
parent
3a0aa51cbf
commit
5389c86cde
3 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue