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.
29 lines
797 B
29 lines
797 B
using Recyclarr.TrashLib.ApiServices.System;
|
|
|
|
namespace Recyclarr.TrashLib.Compatibility.Sonarr;
|
|
|
|
public class SonarrCapabilityFetcher : ServiceCapabilityFetcher<SonarrCapabilities>, ISonarrCapabilityFetcher
|
|
{
|
|
public SonarrCapabilityFetcher(IServiceInformation info)
|
|
: base(info)
|
|
{
|
|
}
|
|
|
|
protected override SonarrCapabilities BuildCapabilitiesObject(Version version)
|
|
{
|
|
return new SonarrCapabilities
|
|
{
|
|
Version = version,
|
|
|
|
SupportsNamedReleaseProfiles =
|
|
version >= SonarrCapabilities.MinimumVersion,
|
|
|
|
ArraysNeededForReleaseProfileRequiredAndIgnored =
|
|
version >= new Version("3.0.6.1355"),
|
|
|
|
SupportsCustomFormats =
|
|
version >= new Version(4, 0)
|
|
};
|
|
}
|
|
}
|