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.
recyclarr/src/Recyclarr.TrashLib/Config/Parsing/PostProcessing/ConfigMerging/SonarrConfigMerger.cs

14 lines
428 B

namespace Recyclarr.TrashLib.Config.Parsing.PostProcessing.ConfigMerging;
public class SonarrConfigMerger : ServiceConfigMerger<SonarrConfigYaml>
{
public override SonarrConfigYaml Merge(SonarrConfigYaml a, SonarrConfigYaml b)
{
return base.Merge(a, b) with
{
ReleaseProfiles = Combine(a.ReleaseProfiles, b.ReleaseProfiles,
(x, y) => x.Concat(y).ToList())
};
}
}