diff options
| author | theguymadmax <theguymadmax@proton.me> | 2025-10-10 18:34:37 -0400 |
|---|---|---|
| committer | theguymadmax <theguymadmax@proton.me> | 2025-10-10 18:34:37 -0400 |
| commit | 49c3443b0cdf09b84aa644fe0438f6384aeb5623 (patch) | |
| tree | c0de56ac27ca4ec06c7cf6d557a508e4fe35b1d5 /MediaBrowser.Controller | |
| parent | e415718fe7cd6a72eda642a582b17c975da08627 (diff) | |
Prevent PlaylistsFolder deletion during library removal
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Folder.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index e62004510..e9a383690 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); |
