From 4cf25b6b37f9ab151fa902dd42f6c386c7ed00ac Mon Sep 17 00:00:00 2001 From: Roger Far Date: Tue, 9 Feb 2021 19:48:21 -0700 Subject: [PATCH] Upgraded RD.NET to 1.0.2 --- server/RdtClient.Data/RdtClient.Data.csproj | 2 +- server/RdtClient.Service/RdtClient.Service.csproj | 2 +- server/RdtClient.Service/Services/QBittorrent.cs | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) 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 = "" }); }