mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-28 10:02:28 -04:00
Fix tests
This commit is contained in:
@@ -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)..];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user