From fd74ac7e93da600fc5a532e8a991ea061cb6837f Mon Sep 17 00:00:00 2001 From: fiso64 Date: Tue, 28 Nov 2023 15:04:45 +0100 Subject: [PATCH] stuff --- slsk-batchdl/Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/slsk-batchdl/Program.cs b/slsk-batchdl/Program.cs index 679d081..f62d230 100644 --- a/slsk-batchdl/Program.cs +++ b/slsk-batchdl/Program.cs @@ -1356,11 +1356,10 @@ static class Program { var equivalentFiles = EquivalentFiles(track, results.Select(x => x.Value), 1); result = equivalentFiles - .SelectMany(t => t.Item2, (t, f) => new { t.Item1, f.response.Username, f.file.Filename }) - .GroupBy(x => $"{x.Username}\\{x.Filename}") + .SelectMany(t => t.Item2, (t, f) => new { t.Item1, f.response.Username, f.file.Filename, Count = t.Item2.Count() }) .ToSafeDictionary( - g => g.Key, - g => (g.First().Item1, g.Count())); + x => $"{x.Username}\\{x.Filename}", + x => (x.Item1, x.Count)); } var infTrack = (string fname, string uname) => {