Fixed: False positive in remote path check with transmission

Correctly use the download directory when it's set

(cherry picked from commit e09ca145d125a12016a6bf41a4971148bd2de870)
pull/5547/head
ta264 4 years ago committed by Mark McDowall
parent 8c68dfb8ce
commit 66caec31c9

@ -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 = Settings.TvDirectory;
}
else
{
destDir = string.Format("{0}/{1}", destDir, Settings.TvCategory);
var config = _proxy.GetConfig(Settings);
destDir = config.DownloadDir;
if (Settings.TvCategory.IsNotNullOrWhiteSpace())
{
destDir = $"{destDir}/{Settings.TvCategory}";
}
}
return new DownloadClientInfo

Loading…
Cancel
Save