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.
16 lines
412 B
16 lines
412 B
using Recyclarr.Config.Models;
|
|
using Recyclarr.ServarrApi.Tag;
|
|
|
|
namespace Recyclarr.Cli.Pipelines.Tags.PipelinePhases;
|
|
|
|
public class TagApiFetchPhase(ISonarrTagApiService api, ServiceTagCache cache)
|
|
{
|
|
public async Task<IList<SonarrTag>> Execute(IServiceConfiguration config)
|
|
{
|
|
var tags = await api.GetTags(config);
|
|
cache.Clear();
|
|
cache.AddTags(tags);
|
|
return tags;
|
|
}
|
|
}
|