Fixed: False positive in remote path check with transmission

Correctly use the download directory when it's set
pull/2/head
ta264 5 years ago
parent a8deaf85c0
commit e09ca145d1

@ -165,13 +165,21 @@ namespace NzbDrone.Core.Download.Clients.Transmission
}
public override DownloadClientInfo GetStatus()
{
string destDir;
if (Settings.MovieDirectory.IsNotNullOrWhiteSpace())
{
destDir = Settings.MovieDirectory;
}
else
{
var config = _proxy.GetConfig(Settings);
var destDir = config.DownloadDir;
destDir = config.DownloadDir;
if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{
destDir = string.Format("{0}/.{1}", destDir, Settings.MovieCategory);
destDir = string.Format("{0}/{1}", destDir, Settings.MovieCategory);
}
}
return new DownloadClientInfo

Loading…
Cancel
Save