Fixed issue with qBittorrent category save paths and updated all qBittorrent versions.

This commit is contained in:
Roger Far 2021-01-13 16:03:15 -07:00
parent 9b74c45ec3
commit 4f0d75a9f5
2 changed files with 9 additions and 15 deletions

View file

@ -458,7 +458,7 @@ namespace RdtClient.Service.Services
m => new TorrentCategory m => new TorrentCategory
{ {
Name = m.Category, Name = m.Category,
SavePath = Path.Combine(savePath, m.Category) SavePath = ""
}); });
} }

View file

@ -64,7 +64,7 @@ namespace RdtClient.Web.Controllers
[HttpPost] [HttpPost]
public ActionResult AppVersion() public ActionResult AppVersion()
{ {
return Ok("v4.2.3"); return Ok("v4.3.2");
} }
[Route("app/webapiVersion")] [Route("app/webapiVersion")]
@ -72,7 +72,7 @@ namespace RdtClient.Web.Controllers
[HttpPost] [HttpPost]
public ActionResult AppWebVersion() public ActionResult AppWebVersion()
{ {
return Ok("2.4.1"); return Ok("2.7");
} }
[Route("app/buildInfo")] [Route("app/buildInfo")]
@ -83,10 +83,10 @@ namespace RdtClient.Web.Controllers
var result = new AppBuildInfo var result = new AppBuildInfo
{ {
Bitness = 64, Bitness = 64,
Boost = "1.72.0", Boost = "1.75.0",
Libtorrent = "1.2.5.0", Libtorrent = "1.2.11.0",
Openssl = "1.1.1f", Openssl = "1.1.1i",
Qt = "5.13.2", Qt = "5.15.2",
Zlib = "1.2.11" Zlib = "1.2.11"
}; };
return Ok(result); return Ok(result);
@ -308,27 +308,21 @@ namespace RdtClient.Web.Controllers
{ {
var categories = await _qBittorrent.TorrentsCategories(); var categories = await _qBittorrent.TorrentsCategories();
var savePath = await _qBittorrent.AppDefaultSavePath();
if (!categories.ContainsKey("radarr")) if (!categories.ContainsKey("radarr"))
{ {
var radarrPath = Path.Combine(savePath, "radarr");
categories.Add("radarr", new TorrentCategory categories.Add("radarr", new TorrentCategory
{ {
Name = "radarr", Name = "radarr",
SavePath = radarrPath SavePath = ""
}); });
} }
if (!categories.ContainsKey("sonarr")) if (!categories.ContainsKey("sonarr"))
{ {
var sonarrPath = Path.Combine(savePath, "sonarr");
categories.Add("sonarr", new TorrentCategory categories.Add("sonarr", new TorrentCategory
{ {
Name = "sonarr", Name = "sonarr",
SavePath = sonarrPath SavePath = ""
}); });
} }