mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 15:03:06 +03:00
More efficient array creation (#11468)
This commit is contained in:
@@ -85,7 +85,7 @@ public class LibraryStructureController : BaseJellyfinApiController
|
||||
|
||||
if (paths is not null && paths.Length > 0)
|
||||
{
|
||||
libraryOptions.PathInfos = paths.Select(i => new MediaPathInfo(i)).ToArray();
|
||||
libraryOptions.PathInfos = Array.ConvertAll(paths, i => new MediaPathInfo(i));
|
||||
}
|
||||
|
||||
await _libraryManager.AddVirtualFolder(name, collectionType, libraryOptions, refreshLibrary).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user