The Free Software Media System - Server Backend & API
Fix disabled libraries being returned in MediaFolders api (#11236)
Bill Thornton00620a409241
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.csindex 984dc77896..360389d292 100644--- a/Jellyfin.Api/Controllers/LibraryController.cs+++ b/Jellyfin.Api/Controllers/LibraryController.cs@@ -520,7 +520,11 @@ public class LibraryController : BaseJellyfinApiController[ProducesResponseType(StatusCodes.Status200OK)]public ActionResult<QueryResult<BaseItemDto>> GetMediaFolders([FromQuery] bool? isHidden){- var items = _libraryManager.GetUserRootFolder().Children.Concat(_libraryManager.RootFolder.VirtualChildren).OrderBy(i => i.SortName).ToList();+ var items = _libraryManager.GetUserRootFolder().Children+ .Concat(_libraryManager.RootFolder.VirtualChildren)+ .Where(i => _libraryManager.GetLibraryOptions(i).Enabled)+ .OrderBy(i => i.SortName)+ .ToList();if (isHidden.HasValue){