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.
28 lines
810 B
28 lines
810 B
using Recyclarr.TrashLib.Services.Common;
|
|
using Recyclarr.TrashLib.Services.System;
|
|
|
|
namespace Recyclarr.TrashLib.Services.Sonarr;
|
|
|
|
public class SonarrCompatibility : ServiceCompatibility<SonarrCapabilities>, ISonarrCompatibility
|
|
{
|
|
public SonarrCompatibility(IServiceInformation compatibility)
|
|
: base(compatibility)
|
|
{
|
|
}
|
|
|
|
protected override SonarrCapabilities BuildCapabilitiesObject(Version version)
|
|
{
|
|
return new SonarrCapabilities(version)
|
|
{
|
|
SupportsNamedReleaseProfiles =
|
|
version >= SonarrCapabilities.MinimumVersion,
|
|
|
|
ArraysNeededForReleaseProfileRequiredAndIgnored =
|
|
version >= new Version("3.0.6.1355"),
|
|
|
|
SupportsCustomFormats =
|
|
version >= new Version(4, 0)
|
|
};
|
|
}
|
|
}
|