1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: False positive in remote path check with transmission

Correctly use the download directory when it's set
This commit is contained in:
ta264 2020-06-28 22:09:13 +01:00
parent a8deaf85c0
commit e09ca145d1

View File

@ -166,12 +166,20 @@ public override void RemoveItem(string downloadId, bool deleteData)
public override DownloadClientInfo GetStatus()
{
var config = _proxy.GetConfig(Settings);
var destDir = config.DownloadDir;
if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
string destDir;
if (Settings.MovieDirectory.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