mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02: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
@ -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 New Issue
Block a user