You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
494 B
18 lines
494 B
using Recyclarr.Cli.Pipelines.Generic;
|
|
using Recyclarr.Config.Models;
|
|
|
|
namespace Recyclarr.Cli.Pipelines.Tags.PipelinePhases;
|
|
|
|
public class TagConfigPhase : IConfigPipelinePhase<TagPipelineContext>
|
|
{
|
|
public Task Execute(TagPipelineContext context, IServiceConfiguration config)
|
|
{
|
|
context.ConfigOutput = ((SonarrConfiguration) config).ReleaseProfiles
|
|
.SelectMany(x => x.Tags)
|
|
.Distinct()
|
|
.ToList();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|