1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-25 07:32:56 +00: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

@ -165,13 +165,21 @@ public override void RemoveItem(string downloadId, bool deleteData)
} }
public override DownloadClientInfo GetStatus() public override DownloadClientInfo GetStatus()
{
string destDir;
if (Settings.MovieDirectory.IsNotNullOrWhiteSpace())
{
destDir = Settings.MovieDirectory;
}
else
{ {
var config = _proxy.GetConfig(Settings); var config = _proxy.GetConfig(Settings);
var destDir = config.DownloadDir; destDir = config.DownloadDir;
if (Settings.MovieCategory.IsNotNullOrWhiteSpace()) if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{ {
destDir = string.Format("{0}/.{1}", destDir, Settings.MovieCategory); destDir = string.Format("{0}/{1}", destDir, Settings.MovieCategory);
}
} }
return new DownloadClientInfo return new DownloadClientInfo