diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2025-10-11 17:20:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-11 17:20:40 -0400 |
| commit | 73dbc9e89f94831d8342d4b4cdccb0f7731ec424 (patch) | |
| tree | 77b6d6c3232759eff3d75e55ffc357e38d890cac | |
| parent | cf3edd98752fe6902e0e2e373543c0fd26c75da9 (diff) | |
| parent | 49c3443b0cdf09b84aa644fe0438f6384aeb5623 (diff) | |
Merge pull request #14978 from theguymadmax/fix-playlistfolder
Prevent PlaylistsFolder deletion during library removal
| -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); |
