From 0c7d8c2d3892a268cc2a6046ccd183ef305d7ffc Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 24 Sep 2015 13:55:33 -0700 Subject: [PATCH] Fixed: TV Directory is not required for local rTorrent --- .../Download/Clients/rTorrent/RTorrentDirectoryValidator.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs index 37ff3d71a..3cb2d6a8b 100644 --- a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs +++ b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs @@ -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 @@ namespace NzbDrone.Core.Download.Clients.rTorrent .SetValidator(droneFactoryValidator) .SetValidator(mappedNetworkDriveValidator) .SetValidator(pathExistsValidator) + .When(c => c.TvDirectory.IsNotNullOrWhiteSpace()) .When(c => c.Host == "localhost" || c.Host == "127.0.0.1"); } }