The Free Software Media System - Server Backend & API
Prevent PlaylistsFolder deletion during library removal
theguymadmax49c3443b0cdf
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex e62004510f..e9a3836902 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -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);