diff --git a/server/RdtClient.Data/RdtClient.Data.csproj b/server/RdtClient.Data/RdtClient.Data.csproj
index 13f39be..abc7e7f 100644
--- a/server/RdtClient.Data/RdtClient.Data.csproj
+++ b/server/RdtClient.Data/RdtClient.Data.csproj
@@ -14,7 +14,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/server/RdtClient.Service/RdtClient.Service.csproj b/server/RdtClient.Service/RdtClient.Service.csproj
index 1ad7639..516fb18 100644
--- a/server/RdtClient.Service/RdtClient.Service.csproj
+++ b/server/RdtClient.Service/RdtClient.Service.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/server/RdtClient.Service/Services/QBittorrent.cs b/server/RdtClient.Service/Services/QBittorrent.cs
index c55b72d..d941233 100644
--- a/server/RdtClient.Service/Services/QBittorrent.cs
+++ b/server/RdtClient.Service/Services/QBittorrent.cs
@@ -443,21 +443,20 @@ namespace RdtClient.Service.Services
{
var torrents = await _torrents.Get();
- var savePath = await AppDefaultSavePath();
-
var torrentsToGroup = torrents.Where(m => !String.IsNullOrWhiteSpace(m.Category))
+ .Select(m => m.Category.ToLower())
.ToList();
var results = new Dictionary();
if (torrentsToGroup.Count > 0)
{
- results = torrentsToGroup.GroupBy(m => m.Category)
+ results = torrentsToGroup.GroupBy(m => m)
.First()
- .ToDictionary(m => m.Category,
+ .ToDictionary(m => m,
m => new TorrentCategory
{
- Name = m.Category,
+ Name = m,
SavePath = ""
});
}