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.
17 lines
505 B
17 lines
505 B
using Recyclarr.Cli.Pipelines.Generic;
|
|
using Recyclarr.Config.Models;
|
|
using Recyclarr.ServarrApi.Tag;
|
|
|
|
namespace Recyclarr.Cli.Pipelines.Tags.PipelinePhases;
|
|
|
|
public class TagApiFetchPhase(ISonarrTagApiService api, ServiceTagCache cache)
|
|
: IApiFetchPipelinePhase<TagPipelineContext>
|
|
{
|
|
public async Task Execute(TagPipelineContext context, IServiceConfiguration config)
|
|
{
|
|
var tags = await api.GetTags(config);
|
|
cache.AddTags(tags);
|
|
context.ApiFetchOutput = tags;
|
|
}
|
|
}
|