mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
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
1 changed files with 13 additions and 5 deletions
|
@ -164,12 +164,20 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
||||||
|
|
||||||
public override DownloadClientInfo GetStatus()
|
public override DownloadClientInfo GetStatus()
|
||||||
{
|
{
|
||||||
var config = _proxy.GetConfig(Settings);
|
string destDir;
|
||||||
var destDir = config.DownloadDir;
|
if (Settings.TvDirectory.IsNotNullOrWhiteSpace())
|
||||||
|
|
||||||
if (Settings.MusicCategory.IsNotNullOrWhiteSpace())
|
|
||||||
{
|
{
|
||||||
destDir = string.Format("{0}/{1}", destDir, Settings.MusicCategory);
|
destDir = Settings.TvDirectory;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var config = _proxy.GetConfig(Settings);
|
||||||
|
destDir = config.DownloadDir;
|
||||||
|
|
||||||
|
if (Settings.MusicCategory.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
destDir = string.Format("{0}/{1}", destDir, Settings.MusicCategory);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new DownloadClientInfo
|
return new DownloadClientInfo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue