no message

This commit is contained in:
Roger Far 2021-02-11 15:35:38 -07:00
parent d46e6f8997
commit 426ff20273

View file

@ -445,15 +445,14 @@ namespace RdtClient.Service.Services
var torrentsToGroup = torrents.Where(m => !String.IsNullOrWhiteSpace(m.Category)) var torrentsToGroup = torrents.Where(m => !String.IsNullOrWhiteSpace(m.Category))
.Select(m => m.Category.ToLower()) .Select(m => m.Category.ToLower())
.Distinct()
.ToList(); .ToList();
var results = new Dictionary<String, TorrentCategory>(); var results = new Dictionary<String, TorrentCategory>();
if (torrentsToGroup.Count > 0) if (torrentsToGroup.Count > 0)
{ {
results = torrentsToGroup.GroupBy(m => m) results = torrentsToGroup.ToDictionary(m => m,
.First()
.ToDictionary(m => m,
m => new TorrentCategory m => new TorrentCategory
{ {
Name = m, Name = m,