mirror of https://github.com/lidarr/Lidarr
Fixed: False positive in remote path check with transmission
Fixes #1771 Correctly use the download directory when it's set
This commit is contained in:
parent
36a1d190db
commit
0ae1b3acce
|
@ -163,14 +163,22 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
|||
}
|
||||
|
||||
public override DownloadClientInfo GetStatus()
|
||||
{
|
||||
string destDir;
|
||||
if (Settings.TvDirectory.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
destDir = Settings.TvDirectory;
|
||||
}
|
||||
else
|
||||
{
|
||||
var config = _proxy.GetConfig(Settings);
|
||||
var destDir = config.DownloadDir;
|
||||
destDir = config.DownloadDir;
|
||||
|
||||
if (Settings.MusicCategory.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
destDir = string.Format("{0}/{1}", destDir, Settings.MusicCategory);
|
||||
}
|
||||
}
|
||||
|
||||
return new DownloadClientInfo
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue