|
|
@ -1,5 +1,6 @@
|
|
|
|
using FluentValidation;
|
|
|
|
using FluentValidation;
|
|
|
|
using FluentValidation.Results;
|
|
|
|
using FluentValidation.Results;
|
|
|
|
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Core.Download.Clients.RTorrent;
|
|
|
|
using NzbDrone.Core.Download.Clients.RTorrent;
|
|
|
|
using NzbDrone.Core.Validation.Paths;
|
|
|
|
using NzbDrone.Core.Validation.Paths;
|
|
|
|
|
|
|
|
|
|
|
@ -23,6 +24,7 @@ namespace NzbDrone.Core.Download.Clients.rTorrent
|
|
|
|
.SetValidator(droneFactoryValidator)
|
|
|
|
.SetValidator(droneFactoryValidator)
|
|
|
|
.SetValidator(mappedNetworkDriveValidator)
|
|
|
|
.SetValidator(mappedNetworkDriveValidator)
|
|
|
|
.SetValidator(pathExistsValidator)
|
|
|
|
.SetValidator(pathExistsValidator)
|
|
|
|
|
|
|
|
.When(c => c.TvDirectory.IsNotNullOrWhiteSpace())
|
|
|
|
.When(c => c.Host == "localhost" || c.Host == "127.0.0.1");
|
|
|
|
.When(c => c.Host == "localhost" || c.Host == "127.0.0.1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|