1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed: TV Directory is not required for local rTorrent

This commit is contained in:
Mark McDowall 2015-09-24 13:55:33 -07:00
parent c63b65eba1
commit 0c7d8c2d38

View File

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