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))
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue