mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-26 06:40:53 +02:00
New: (Torznab) Internal and Scene tags
This commit is contained in:
parent
16baceb784
commit
d764e3405d
1 changed files with 12 additions and 0 deletions
|
|
@ -277,6 +277,18 @@ protected HashSet<IndexerFlag> GetFlags(XElement item)
|
|||
flags.Add(IndexerFlag.FreeLeech);
|
||||
}
|
||||
|
||||
var tags = TryGetMultipleTorznabAttributes(item, "tag");
|
||||
|
||||
if (tags.Any(t => t.EqualsIgnoreCase("internal")))
|
||||
{
|
||||
flags.Add(IndexerFlag.Internal);
|
||||
}
|
||||
|
||||
if (tags.Any(t => t.EqualsIgnoreCase("scene")))
|
||||
{
|
||||
flags.Add(IndexerFlag.Scene);
|
||||
}
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue