From 6561d58ad512bdc4dfd6dacf55a5b03b2a143623 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Sat, 24 Oct 2026 11:33:46 +0200 Subject: Fix review comments --- Emby.Server.Implementations/Library/LibraryManager.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Emby.Server.Implementations/Library') diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 6d8e9abc45..c877c8bf2c 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -1678,7 +1678,14 @@ namespace Emby.Server.Implementations.Library // Reads the .mblink files directly; going through RootFolder.Children would re-enter the resolver. private IEnumerable GetLibraryRootPaths() { - return _fileSystem.GetDirectoryPaths(_configurationManager.ApplicationPaths.DefaultUserViewsPath) + // root/default only exists once the user root folder or a library has been created + var userViewsPath = _configurationManager.ApplicationPaths.DefaultUserViewsPath; + if (!_fileSystem.DirectoryExists(userViewsPath)) + { + return []; + } + + return _fileSystem.GetDirectoryPaths(userViewsPath) .SelectMany(GetVirtualFolderLocations) .ToList(); } -- cgit v1.2.3