mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed: False positive in remote path check with transmission
Correctly use the download directory when it's set (cherry picked from commit e09ca145d125a12016a6bf41a4971148bd2de870)
This commit is contained in:
parent
8c68dfb8ce
commit
66caec31c9
@ -170,13 +170,22 @@ public override void RemoveItem(DownloadClientItem item, bool deleteData)
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override DownloadClientInfo GetStatus()
|
public override DownloadClientInfo GetStatus()
|
||||||
|
{
|
||||||
|
string destDir;
|
||||||
|
|
||||||
|
if (Settings.TvDirectory.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
destDir = Settings.TvDirectory;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
var config = _proxy.GetConfig(Settings);
|
var config = _proxy.GetConfig(Settings);
|
||||||
var destDir = config.DownloadDir;
|
destDir = config.DownloadDir;
|
||||||
|
|
||||||
if (Settings.TvCategory.IsNotNullOrWhiteSpace())
|
if (Settings.TvCategory.IsNotNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
destDir = string.Format("{0}/{1}", destDir, Settings.TvCategory);
|
destDir = $"{destDir}/{Settings.TvCategory}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new DownloadClientInfo
|
return new DownloadClientInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user