fixed after testing aginst a real Syno

This commit is contained in:
margaale 2017-08-15 23:52:24 -03:00 committed by Taloth Saldono
parent 4e74fe2eec
commit 174b00f188
1 changed files with 2 additions and 2 deletions

View File

@ -373,13 +373,13 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation
{ {
var info = _dsmInfoProxy.GetInfo(Settings); 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 dsmVersion = regex.Match(info.Version).Groups["version"].Value;
var version = new Version(dsmVersion); 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() protected ValidationFailure ValidateProxiesVersion()