mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-23 17:22:51 +00:00
Merge pull request #14978 from theguymadmax/fix-playlistfolder
Prevent PlaylistsFolder deletion during library removal
This commit is contained in:
commit
73dbc9e89f
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue