From 66caec31c9b14d029c205f4d855760f985b52bd7 Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 28 Jun 2020 22:09:13 +0100 Subject: [PATCH] Fixed: False positive in remote path check with transmission Correctly use the download directory when it's set (cherry picked from commit e09ca145d125a12016a6bf41a4971148bd2de870) --- .../Clients/Transmission/TransmissionBase.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs index 586a3618c..d0f5a892b 100644 --- a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs +++ b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs @@ -171,12 +171,21 @@ namespace NzbDrone.Core.Download.Clients.Transmission public override DownloadClientInfo GetStatus() { - var config = _proxy.GetConfig(Settings); - var destDir = config.DownloadDir; + string destDir; - if (Settings.TvCategory.IsNotNullOrWhiteSpace()) + if (Settings.TvDirectory.IsNotNullOrWhiteSpace()) { - destDir = string.Format("{0}/{1}", destDir, Settings.TvCategory); + destDir = Settings.TvDirectory; + } + else + { + var config = _proxy.GetConfig(Settings); + destDir = config.DownloadDir; + + if (Settings.TvCategory.IsNotNullOrWhiteSpace()) + { + destDir = $"{destDir}/{Settings.TvCategory}"; + } } return new DownloadClientInfo