Merge pull request #14978 from theguymadmax/fix-playlistfolder

Prevent PlaylistsFolder deletion during library removal
This commit is contained in:
Joshua M. Boniface 2025-10-11 17:20:40 -04:00 committed by GitHub
commit 73dbc9e89f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -457,6 +457,12 @@ namespace MediaBrowser.Controller.Entities
{
foreach (var item in itemsRemoved)
{
if (!item.CanDelete())
{
Logger.LogDebug("Item marked as non-removable, skipping: {Path}", item.Path ?? item.Name);
continue;
}
if (item.IsFileProtocol)
{
Logger.LogDebug("Removed item: {Path}", item.Path);