[PR #11037] [MERGED] Add ability to enable/disable libraries #12527

Closed
opened 2025-12-22 09:21:11 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/11037
Author: @btopherjohnson
Created: 2/20/2024
Status: Merged
Merged: 3/17/2024
Merged by: @crobibero

Base: masterHead: EnableLibrary


📝 Commits (3)

  • 1e8ae1a Added ability to enable/disable libraries.l
  • 63d75b7 Change LibraryOption "disabled" to "enabled"
  • 83feabf Update CONTRIBUTORS.md

📊 Changes

3 files changed (+14 additions, -0 deletions)

View changed files

📝 CONTRIBUTORS.md (+1 -0)
📝 MediaBrowser.Controller/Entities/CollectionFolder.cs (+11 -0)
📝 MediaBrowser.Model/Configuration/LibraryOptions.cs (+2 -0)

📄 Description

This change addresses users desires to have the option to disable particular libraries for all users at certain times. This is handy for seasonal libraries (like christmas movies/music/tv shows).

I added a "Disabled" option to LibraryOptions.cs and a check to see if a library is disabled in CollectionFolder.cs (it overrides Folder's IsVisible function).

I chose "disabled" over "enabled" because the default value for booleans loaded into the LibraryOptions class by the JsonDeserializer is false, so by default, existing libraries will remain enabled.

I also made a corresponding checkbox in the jellyfin-web repository.

This commit addresses the issue described here:
https://features.jellyfin.org/posts/2530/hide-a-library-from-all-users-disable-library

MediaBrowser.Controller/Entities/CollectionFolder.cs - Added override to IsVisible to check if the library is disabled
MediaBrowser.Model/Configuration/LibraryOptions.cs - Added "Disabled" as an option for libraries.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/11037 **Author:** [@btopherjohnson](https://github.com/btopherjohnson) **Created:** 2/20/2024 **Status:** ✅ Merged **Merged:** 3/17/2024 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `EnableLibrary` --- ### 📝 Commits (3) - [`1e8ae1a`](https://github.com/jellyfin/jellyfin/commit/1e8ae1a95425a6143de71a6cc77537ce212165df) Added ability to enable/disable libraries.l - [`63d75b7`](https://github.com/jellyfin/jellyfin/commit/63d75b76bd779ae5d03b58a7479cc176ed13f90d) Change LibraryOption "disabled" to "enabled" - [`83feabf`](https://github.com/jellyfin/jellyfin/commit/83feabf6dbe0028e12f437a4fe357cf97a2a7259) Update CONTRIBUTORS.md ### 📊 Changes **3 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `CONTRIBUTORS.md` (+1 -0) 📝 `MediaBrowser.Controller/Entities/CollectionFolder.cs` (+11 -0) 📝 `MediaBrowser.Model/Configuration/LibraryOptions.cs` (+2 -0) </details> ### 📄 Description This change addresses users desires to have the option to disable particular libraries for all users at certain times. This is handy for seasonal libraries (like christmas movies/music/tv shows). I added a "Disabled" option to LibraryOptions.cs and a check to see if a library is disabled in CollectionFolder.cs (it overrides Folder's IsVisible function). I chose "disabled" over "enabled" because the default value for booleans loaded into the LibraryOptions class by the JsonDeserializer is false, so by default, existing libraries will remain enabled. I also made a corresponding checkbox in the jellyfin-web repository. This commit addresses the issue described here: https://features.jellyfin.org/posts/2530/hide-a-library-from-all-users-disable-library MediaBrowser.Controller/Entities/CollectionFolder.cs - Added override to IsVisible to check if the library is disabled MediaBrowser.Model/Configuration/LibraryOptions.cs - Added "Disabled" as an option for libraries. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 09:21:11 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#12527
No description provided.