mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 00:22:31 +01:00
New: INTERNAL flag support for Cardigann Indexers based on Description
This commit is contained in:
parent
9e5dd2a2e6
commit
c537e94f0f
1 changed files with 6 additions and 0 deletions
|
|
@ -426,6 +426,12 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
{
|
||||
((TorrentInfo)c).InfoHash = MagnetLinkBuilder.GetInfoHashFromMagnet(((TorrentInfo)c).MagnetUrl);
|
||||
}
|
||||
|
||||
// Add Internal flag if description starts with Internal
|
||||
if (c.Description.IsNotNullOrWhiteSpace() && c.Description.StartsWith("Internal"))
|
||||
{
|
||||
c.IndexerFlags.Add(IndexerFlag.Internal);
|
||||
}
|
||||
});
|
||||
|
||||
_logger.Trace("Cardigann ({0}): Got {1} releases", _definition.Id, releases.Count);
|
||||
|
|
|
|||
Loading…
Reference in a new issue