mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #14978] [MERGED] Prevent PlaylistsFolder deletion during library removal #14209
Reference in New Issue
Block a user
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/14978
Author: @theguymadmax
Created: 10/11/2025
Status: ✅ Merged
Merged: 10/12/2025
Merged by: @joshuaboniface
Base:
master← Head:fix-playlistfolder📝 Commits (1)
49c3443Prevent PlaylistsFolder deletion during library removal📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
MediaBrowser.Controller/Entities/Folder.cs(+6 -0)📄 Description
After deleting any library, the PlaylistsFolder was also removed from the database, which would cause an exception if the user then tried to add an item to a playlist.
Changes
Added
CanDelete()check before deleting items inValidateChildrenInternal2methodIssues
Log Error
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.