Prevent PlaylistsFolder deletion during library removal

This commit is contained in:
theguymadmax
2025-10-10 18:34:37 -04:00
parent e415718fe7
commit 49c3443b0c

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);