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

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

Loading…
Cancel
Save