no message
This commit is contained in:
parent
d46e6f8997
commit
426ff20273
1 changed files with 2 additions and 3 deletions
|
|
@ -445,15 +445,14 @@ namespace RdtClient.Service.Services
|
|||
|
||||
var torrentsToGroup = torrents.Where(m => !String.IsNullOrWhiteSpace(m.Category))
|
||||
.Select(m => m.Category.ToLower())
|
||||
.Distinct()
|
||||
.ToList();
|
||||
|
||||
var results = new Dictionary<String, TorrentCategory>();
|
||||
|
||||
if (torrentsToGroup.Count > 0)
|
||||
{
|
||||
results = torrentsToGroup.GroupBy(m => m)
|
||||
.First()
|
||||
.ToDictionary(m => m,
|
||||
results = torrentsToGroup.ToDictionary(m => m,
|
||||
m => new TorrentCategory
|
||||
{
|
||||
Name = m,
|
||||
|
|
|
|||
Loading…
Reference in a new issue