mirror of
https://github.com/Radarr/Radarr
synced 2025-02-24 23:23:21 +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
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue