From 9904316bdfd28ed905234451c50a8b7c46ac4b5d Mon Sep 17 00:00:00 2001 From: fiso64 Date: Thu, 30 Nov 2023 13:22:30 +0100 Subject: [PATCH] mini stuff --- slsk-batchdl/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slsk-batchdl/Program.cs b/slsk-batchdl/Program.cs index 11d316c..ef91de9 100644 --- a/slsk-batchdl/Program.cs +++ b/slsk-batchdl/Program.cs @@ -1384,8 +1384,7 @@ static class Program .ThenByDescending(x => x.response.UploadSpeed / 600) .ThenByDescending(x => FileConditions.StrictString(x.file.Filename, track.TrackTitle)) .ThenByDescending(x => FileConditions.StrictString(x.file.Filename, track.ArtistName)) - .ThenByDescending(x => -(levenshtein(x) + 1) / 3) - .ThenByDescending(x => track.Length > 0 ? -Math.Max(Math.Abs(track.Length - (x.file.Length ?? -9999)) - 1, 0) / 3 : 0) + .ThenByDescending(x => levenshtein(x) <= 5) .ThenByDescending(x => x.response.UploadSpeed / 300) .ThenByDescending(x => (x.file.BitRate ?? 0) / 70) .ThenByDescending(x => infTrack(x).Item2)