mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #11037] [MERGED] Add ability to enable/disable libraries #12527
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#12527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:EnableLibrary📝 Commits (3)
1e8ae1aAdded ability to enable/disable libraries.l63d75b7Change LibraryOption "disabled" to "enabled"83feabfUpdate 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.