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:
parent
a8deaf85c0
commit
e09ca145d1
1 changed files with 13 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue