Fix tests

This commit is contained in:
Zoe Roux
2023-03-14 00:15:19 +09:00
parent da17fc3e6d
commit 4b7f59e2e9
2 changed files with 10 additions and 11 deletions
@@ -68,8 +68,7 @@ namespace Kyoo.Core.Controllers
string libraryPath = (await _libraryManager.GetAll<Library>())
.SelectMany(x => x.Paths)
.Where(path.StartsWith)
.OrderByDescending(x => x.Length)
.FirstOrDefault();
.MaxBy(x => x.Length);
return path[(libraryPath?.Length ?? 0)..];
}