mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-09 05:40:53 +02:00
fixed after testing aginst a real Syno
This commit is contained in:
parent
4e74fe2eec
commit
174b00f188
1 changed files with 2 additions and 2 deletions
|
|
@ -373,13 +373,13 @@ protected ValidationFailure TestDSMVersion()
|
|||
{
|
||||
var info = _dsmInfoProxy.GetInfo(Settings);
|
||||
|
||||
Regex regex = new Regex(@"(\bDSM\b (?<version>[\d.-]*)){1}");
|
||||
Regex regex = new Regex(@"(\bDSM\b (?<version>[\d.]*)){1}");
|
||||
|
||||
var dsmVersion = regex.Match(info.Version).Groups["version"].Value;
|
||||
|
||||
var version = new Version(dsmVersion);
|
||||
|
||||
return version < new Version(6, 0, 0) ? new ValidationFailure(string.Empty, $"DSM Version {version} not supported. It should be 6 or above.") : null;
|
||||
return version < new Version(6, 0, 0) ? new NzbDroneValidationFailure(string.Empty, $"DSM Version {version} not fully supported. We recommend version 6.0.0 or above.") { IsWarning = true } : null;
|
||||
}
|
||||
|
||||
protected ValidationFailure ValidateProxiesVersion()
|
||||
|
|
|
|||
Loading…
Reference in a new issue